From 78dcf5ca267ceef4ba1ceef94fe58da72b00bedd Mon Sep 17 00:00:00 2001 From: Nikolaus Krondraf Date: Mon, 18 Nov 2019 07:31:53 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A4ume=20k=C3=B6nnen=20optional=20auch=20be?= =?UTF-8?q?i=20Terminkollision=20gebucht=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cis/private/lehre/pruefung/pruefungsanmeldung.json.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cis/private/lehre/pruefung/pruefungsanmeldung.json.php b/cis/private/lehre/pruefung/pruefungsanmeldung.json.php index b4eba2f6d..9c30427c3 100644 --- a/cis/private/lehre/pruefung/pruefungsanmeldung.json.php +++ b/cis/private/lehre/pruefung/pruefungsanmeldung.json.php @@ -1177,7 +1177,12 @@ function getAllFreieRaeume($terminId) $teilnehmer = $teilnehmer !== false ? $teilnehmer : 0; $pruefungstermin->getAll($pruefungstermin->von, $pruefungstermin->bis, TRUE); - if($ort->search($datum_von[0], $datum_von[1], $datum_bis[1], null, $teilnehmer, true)) + if(defined('CIS_PRUEFUNGSANMELDUNG_ERLAUBE_TERMINKOLLISION') && CIS_PRUEFUNGSANMELDUNG_ERLAUBE_TERMINKOLLISION) + $ortSuccess = $ort->getOrte(true, null, true); + else + $ortSuccess = $ort->search($datum_von[0], $datum_von[1], $datum_bis[1], null, $teilnehmer, true); + + if($ortSuccess) { foreach($pruefungstermin->result as $termin) {