Kalender Anpassungen

- Kalender Freigaben für Conny
This commit is contained in:
Daniel Spitzer
2025-06-23 20:48:55 +02:00
parent 2e732505ab
commit bfbf9a1c12
2 changed files with 14 additions and 7 deletions

View File

@@ -192,9 +192,16 @@ class TimerecordingModel
if (array_key_exists("start", $filter) && array_key_exists("days", $filter)) {
$days = $filter['days'];
$start = $filter['start'];
$end= $filter['endsdate'];
if ($days === 1) {
$where .= " AND `start` >= $start AND `days` !=0 ORDER by start ASC";
$where .= " AND `start` >= $start AND `days` !=0 ";
}
if ($end) {
if (is_numeric($end)) {
$where .= " AND `start` <= $end ";
}
}
$where.=" ORDER by start ASC";
}
if (array_key_exists("timerecordingCar_id", $filter)) {
$timerecordingCar = $filter['timerecordingCar_id'];