"MDL-13766, delete config if checkbox element is unchecked"

This commit is contained in:
dongsheng 2009-10-08 09:01:34 +00:00
parent 6b3c4d65c7
commit b3efb4cfd4

View file

@ -70,6 +70,10 @@ if (!empty($edit) || !empty($new)) {
foreach($configs as $config) {
if (!empty($fromform->$config)) {
$settings[$config] = $fromform->$config;
} else {
// if the config name is not appear in $fromform
// empty this config value
$settings[$config] = '';
}
}
$instanceoptionnames = repository::static_function($edit, 'get_instance_option_names');