From 077acab5580b09109fea9cc90212622dbfe96bb9 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Tue, 27 Oct 2026 14:10:05 +0100 Subject: [PATCH] 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); --- include/karrierepfad.class.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/karrierepfad.class.php b/include/karrierepfad.class.php index dabc220fc..9450d86b2 100644 --- a/include/karrierepfad.class.php +++ b/include/karrierepfad.class.php @@ -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