Räume können optional auch bei Terminkollision gebucht werden

This commit is contained in:
Nikolaus Krondraf
2019-11-18 07:31:53 +01:00
parent 2657c64b81
commit 78dcf5ca26
@@ -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)
{