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:
Eloy Lafuente (stronk7)
2013-03-26 12:13:40 +01:00
parent 3a7e4a80ad
commit f35f07e9f7
2 changed files with 11 additions and 3 deletions
+4 -1
View File
@@ -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();
}
}
}