MDL-38719 forms: add some missing types.
This just adds some missing types to different places causing phpunit tests to fail.
This commit is contained in:
Vendored
+4
-1
@@ -49,7 +49,9 @@ class cachestore_addinstance_form extends moodleform {
|
||||
$locks = $this->_customdata['locks'];
|
||||
|
||||
$form->addElement('hidden', 'plugin', $plugin);
|
||||
$form->setType('plugin', PARAM_PLUGIN);
|
||||
$form->addElement('hidden', 'editing', !empty($this->_customdata['store']));
|
||||
$form->setType('editing', PARAM_BOOL);
|
||||
|
||||
if (!$store) {
|
||||
$form->addElement('text', 'name', get_string('storename', 'cache'));
|
||||
@@ -59,6 +61,7 @@ class cachestore_addinstance_form extends moodleform {
|
||||
} else {
|
||||
$form->addElement('hidden', 'name', $store);
|
||||
$form->addElement('static', 'name-value', get_string('storename', 'cache'), $store);
|
||||
$form->setType('name', PARAM_TEXT);
|
||||
}
|
||||
|
||||
if (is_array($locks)) {
|
||||
@@ -214,4 +217,4 @@ class cache_mode_mappings_form extends moodleform {
|
||||
|
||||
$this->add_action_buttons();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user