Fix #155: Hiding statuses removes them from Settings
authorBarry Oosthuizen <barry.oosthuizen@nottingham.ac.uk>
Tue, 22 Sep 2015 15:47:21 +0000 (16:47 +0100)
committerBarry Oosthuizen <barry.oosthuizen@nottingham.ac.uk>
Tue, 22 Sep 2015 15:51:18 +0000 (16:51 +0100)
preferences.php

index 4efc0f4..91f10f3 100644 (file)
@@ -100,9 +100,9 @@ switch ($att->pageparams->action) {
         echo $OUTPUT->footer();
         exit;
     case att_preferences_page_params::ACTION_HIDE:
-        $statuses = $att->get_statuses();
         $status = $statuses[$att->pageparams->statusid];
         $att->update_status($status, null, null, null, 0);
+        $statuses = $att->get_statuses(false);
         break;
     case att_preferences_page_params::ACTION_SHOW:
         $statuses = $att->get_statuses(false);