MDL-53813 search: prevent form change checker on search form
authorDan Poltawski <dan@moodle.com>
Thu, 14 Apr 2016 13:02:01 +0000 (14:02 +0100)
committerDan Poltawski <dan@moodle.com>
Thu, 14 Apr 2016 13:02:01 +0000 (14:02 +0100)
When we are searching for things we don't have text input we need to
care about loosing.

search/classes/output/form/search.php

index fed9dbf..2da7c32 100644 (file)
@@ -39,6 +39,7 @@ class search extends \moodleform {
         global $CFG;
 
         $mform =& $this->_form;
+        $mform->disable_form_change_checker();
         $mform->addElement('header', 'search', get_string('search', 'search'));
 
         // Help info depends on the selected search engine.