Browse Source

Merge pull request #158 from barrysspace/hotfix/issue_155_hiding_status_removes_it_MDL28

Fix #155: Hiding statuses removes them from Settings
MOODLE_28_STABLE
Dan Marsden 9 years ago
parent
commit
733e55f67d
  1. 2
      preferences.php

2
preferences.php

@ -94,9 +94,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);

Loading…
Cancel
Save