Merge branch 'MDL-21625_b' of git://github.com/rwijaya/moodle
[moodle.git] / question / editlib.php
index cbbc00a..0ec5f72 100644 (file)
@@ -1571,6 +1571,10 @@ class question_bank_view {
         if(($unhide = optional_param('unhide', '', PARAM_INT)) and confirm_sesskey()) {
             question_require_capability_on($unhide, 'edit');
             $DB->set_field('question', 'hidden', 0, array('id' => $unhide));
+
+            // Purge these questions from the cache.
+            question_bank::notify_question_edited($unhide);
+
             redirect($this->baseurl);
         }
     }