mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
Merge branch 'wip-MDL-39294-m25' of git://github.com/samhemelryk/moodle
This commit is contained in:
commit
3e8e66f454
3
cache/forms.php
vendored
3
cache/forms.php
vendored
@ -139,7 +139,9 @@ class cache_definition_mappings_form extends moodleform {
|
||||
cache_administration_helper::get_definition_store_options($component, $area);
|
||||
|
||||
$form->addElement('hidden', 'definition', $definition);
|
||||
$form->setType('definition', PARAM_SAFEPATH);
|
||||
$form->addElement('hidden', 'action', 'editdefinitionmapping');
|
||||
$form->setType('action', PARAM_ALPHA);
|
||||
|
||||
$requiredoptions = max(3, count($currentstores)+1);
|
||||
$requiredoptions = min($requiredoptions, count($storeoptions));
|
||||
@ -211,6 +213,7 @@ class cache_mode_mappings_form extends moodleform {
|
||||
}
|
||||
|
||||
$form->addElement('hidden', 'action', 'editmodemappings');
|
||||
$form->setType('action', PARAM_ALPHA);
|
||||
foreach ($options as $mode => $optionset) {
|
||||
$form->addElement('select', 'mode_'.$mode, get_string('mode_'.$mode, 'cache'), $optionset);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user