fix: on update with action reminder in future there is user key error

This commit is contained in:
Florian HENRY 2022-03-31 18:55:54 +02:00
parent c5a67f074b
commit e7db103b57

View File

@ -659,7 +659,7 @@ if (empty($reshook) && $action == 'update') {
$categories = GETPOST('categories', 'array');
$object->setCategories($categories);
$object->loadReminders();
$object->loadReminders($remindertype,0,false);
if (!empty($object->reminders) && $object->datep > dol_now()) {
foreach ($object->reminders as $reminder) {
$reminder->delete($user);