Merge branch 'spidev' into 'master'
Calender Update See merge request fronk/thetool!1719
This commit is contained in:
@@ -270,6 +270,10 @@ class CalendarModel
|
|||||||
$recurrence = json_decode($data['recurrence'], true);
|
$recurrence = json_decode($data['recurrence'], true);
|
||||||
$rrule_events = json_decode($data['rrule_events'], true);
|
$rrule_events = json_decode($data['rrule_events'], true);
|
||||||
foreach ($rrule_events as $key => $value) {
|
foreach ($rrule_events as $key => $value) {
|
||||||
|
if ($r->visibleCancellation === "0" && (str_starts_with(trim($value['subject']), "Abgesagt:") || str_starts_with(trim($value['subject']), "Abgesage:") || str_starts_with(trim($value['subject']), "Canceled:"))) {
|
||||||
|
unset($rrule_events[$key]);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$rrule_events[$key]['start'] = self::convertToSummertime(strtotime($value['start']));
|
$rrule_events[$key]['start'] = self::convertToSummertime(strtotime($value['start']));
|
||||||
$rrule_events[$key]['end'] = self::convertToSummertime(strtotime($value['end']));
|
$rrule_events[$key]['end'] = self::convertToSummertime(strtotime($value['end']));
|
||||||
}
|
}
|
||||||
@@ -914,7 +918,7 @@ WHERE `TimerecordingCategory`.`hourday`!='1' AND `TimerecordingCategory`.`hourda
|
|||||||
$allday = 0;
|
$allday = 0;
|
||||||
} else {
|
} else {
|
||||||
$start = $start + 7200;
|
$start = $start + 7200;
|
||||||
$originalend= $end + 7200;
|
$originalend = $end + 7200;
|
||||||
$end = $end + 7200 + 86400;
|
$end = $end + 7200 + 86400;
|
||||||
}
|
}
|
||||||
if ($reminder == 'NULL') {
|
if ($reminder == 'NULL') {
|
||||||
|
|||||||
Reference in New Issue
Block a user