diff --git a/content/student/aufnahmetermine.js.php b/content/student/aufnahmetermine.js.php
index e77980654..17674eadf 100644
--- a/content/student/aufnahmetermine.js.php
+++ b/content/student/aufnahmetermine.js.php
@@ -350,6 +350,12 @@ function AufnahemTermineReihungstestPunkteTransmit()
}
}
+function setEndpunkteAsPunkte(id)
+{
+ var punkte = document.getElementById(id).value;
+ document.getElementById('aufnahmetermine-textbox-punkte').value = punkte;
+}
+
/**
* Speichert einen AufnahmeTermin
*/
diff --git a/content/student/aufnahmetermine.xul.php b/content/student/aufnahmetermine.xul.php
index fe0cff1c4..d8e88294f 100644
--- a/content/student/aufnahmetermine.xul.php
+++ b/content/student/aufnahmetermine.xul.php
@@ -303,12 +303,14 @@ echo ']>
+
+
diff --git a/include/pruefling.class.php b/include/pruefling.class.php
index 999efc7f2..f3859e531 100644
--- a/include/pruefling.class.php
+++ b/include/pruefling.class.php
@@ -400,8 +400,10 @@ class pruefling extends basis_db
tbl_rt_person.rt_id = ".$this->db_add_param($reihungstest_id, FHC_INTEGER)."
AND
tbl_prestudentstatus.status_kurzbz='Interessent'
+ AND
+ tbl_prestudentstatus.studiensemester_kurzbz = tbl_reihungstest.studiensemester_kurzbz
ORDER BY
- tbl_reihungstest.datum desc LIMIT 1
+ tbl_reihungstest.datum DESC, tbl_prestudent.priorisierung ASC LIMIT 1
)
";
if($result = $this->db_query($qry))