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'])) {