diff --git a/application/Calendar/CalendarModel.php b/application/Calendar/CalendarModel.php index 5ca1ca2ff..95ca6f81a 100644 --- a/application/Calendar/CalendarModel.php +++ b/application/Calendar/CalendarModel.php @@ -694,7 +694,7 @@ WHERE `TimerecordingCategory`.`hourday`!='1' AND `TimerecordingCategory`.`hourda if (($r->customer_info_type_text)) { $customer_info_type_text = $r->customer_info_type_text; } - if ($r->customer_info_reminder_check) { + if ($r->customer_info_reminder_check || $r->customer_info_reminder_check == 0) { $updateArray['customer_info_reminder'] = $r->customer_info_reminder_check; } $customerJson = array('customer_info_type' => $customer_info_type, 'customer_info_text' => $customer_info_text, 'customer_info_type_text' => $customer_info_type_text); diff --git a/public/js/pages/Calendar/View.js b/public/js/pages/Calendar/View.js index 5df62fe6d..fe98fbf28 100644 --- a/public/js/pages/Calendar/View.js +++ b/public/js/pages/Calendar/View.js @@ -409,7 +409,11 @@ document.addEventListener('DOMContentLoaded', function () { $('#customer').html(''); } if (data.data.customer_info_reminder.customer_info_reminder) { - $('#customer-info-reminder-check').prop('checked', true); + if (data.data.customer_info_reminder.customer_info_reminder == 1) { + $('#customer-info-reminder-check').prop('checked', true); + } else { + $('#customer-info-reminder-check').prop('checked', false); + } } $('#customer').select2({ placeholder: "Kunden Suche",