From 7536d5e14229021eb63df6599aa5be20af52a08c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 23 Dec 2017 16:55:32 -0700 Subject: [PATCH] Update registrations.php --- app/registrations/registrations.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/app/registrations/registrations.php b/app/registrations/registrations.php index 28638cd8fb..45863c4c97 100644 --- a/app/registrations/registrations.php +++ b/app/registrations/registrations.php @@ -75,19 +75,21 @@ //get the action and remove items from the array that are not checked if (is_array($registrations)) { $x = 0; - foreach ($registrations as $row) { + foreach ($registrations as &$row) { //get the action switch ($row['action']) { - case "unregister": - $action = 'unregister'; - break; - case "provision": - $action = 'provision'; - break; - break; - case "reboot": - $action = 'reboot'; - break; + case "unregister": + $row['checked'] = 'true'; + $action = 'unregister'; + break; + case "provision": + $row['checked'] = 'true'; + $action = 'provision'; + break; + case "reboot": + $row['checked'] = 'true'; + $action = 'reboot'; + break; } //unset rows that were not selected if (!isset($row['checked'])) {