diff --git a/controllers/publics/Scheduled.php b/controllers/publics/Scheduled.php index 0b648d5..aeff877 100755 --- a/controllers/publics/Scheduled.php +++ b/controllers/publics/Scheduled.php @@ -387,6 +387,7 @@ namespace controllers\publics; $success = $this->internal_scheduled->update_for_user($id_user, $id_scheduled, $at, $text, $origin, $flash, $numbers, $contacts, $groups, $conditional_groups); //Check for media + /* $current_media = $scheduled['current_media'] ?? false; if (!$current_media) { @@ -405,11 +406,12 @@ namespace controllers\publics; { continue; } + */ $nb_update += 1; } - if (!$nb_update != count($scheduleds)) + if ($nb_update != count($scheduleds)) { \FlashMessage\FlashMessage::push('danger', 'Certains SMS n\'ont pas été mis à jour.'); return $this->redirect(\descartes\Router::url('Scheduled', 'list')); diff --git a/templates/setting/show.php b/templates/setting/show.php index c7675ec..416bc2f 100755 --- a/templates/setting/show.php +++ b/templates/setting/show.php @@ -53,7 +53,8 @@ - + +