registration.php & "neue Bewerbung" modal in uebersicht.php show the Karrierepfade of each Studienplan as indented radio buttons. "Ohne Karrierepfad" is currently also an option; if the page is loaded with url param karrierepfad_kurzbz the radio button is preselected; in uebersicht.php the Karrierepfad choices are listed again and can be changed; currently the applicant can change it until the prestudent gets the status Student (which counts as the group assignment);

This commit is contained in:
Johann Hoffmann
2026-10-27 14:10:05 +01:00
parent 1678c6ba76
commit 077acab558
+18
View File
@@ -85,6 +85,24 @@ class karrierepfad extends basis_db
return true;
}
/**
* Loads a Karrierepfad by its kurzbz, the value of the URL parameter karrierepfad_kurzbz
* @param string $karrierepfad_kurzbz
* @return boolean
*/
public function loadKurzbz($karrierepfad_kurzbz)
{
$qry = "SELECT karrierepfad_id FROM public.tbl_karrierepfad
WHERE karrierepfad_kurzbz=".$this->db_add_param($karrierepfad_kurzbz);
if (!$this->db_query($qry) || !($row = $this->db_fetch_object()))
{
$this->errormsg = 'Karrierepfad wurde nicht gefunden';
return false;
}
return $this->load($row->karrierepfad_id);
}
/**
* Loads the Karrierepfade linked to a Studienplan into $this->result.
* A Karrierepfad is selectable for a prestudent if it is aktiv and linked to the