Browse code

Temporarily disable slotchecker for slot time field callback until duration gets introduced

Benjamin Roth authored on12/09/2024 13:25:00
Showing1 changed files
... ...
@@ -84,10 +84,11 @@ class WeinanlieferungSlotContainerListener
84 84
         $start = strtotime(date('Y-m-d', $dc->activeRecord->date) . ' ' . date('H:i:s', $varValue));
85 85
         $duration = \intval(Input::post('duration')) !== null ? intval(Input::post('duration'))*60 : $dc->activeRecord->duration*60;
86 86
 
87
-        if ($slotchecker->checkTimeApplicableForSite($dc->activeRecord->pid,$start,$start+$duration,0,\intval($dc->id)))
87
+        // Todo: Introduce duration in a later update
88
+        /*if ($slotchecker->checkTimeApplicableForSite($dc->activeRecord->pid,$start,$start+$duration,0,\intval($dc->id)))
88 89
         {
89 90
             throw new \Exception($this->translator->trans('ERR.wa_slot_conflict', [], 'contao_tl_vr_wa_slot'));
90
-        }
91
+        }*/
91 92
 
92 93
         return $start;
93 94
     }