[setup] allow setting bool option to false if default is true
This commit is contained in:
parent
d809b0b18e
commit
30b437542d
1 changed files with 6 additions and 1 deletions
|
@ -406,7 +406,12 @@ class Setup extends Extension
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$config->delete($name);
|
// browsers don't send empty checkboxes, false value must be stored in case default is true
|
||||||
|
if ($type == "bool") {
|
||||||
|
$config->set_bool($name, false);
|
||||||
|
} else {
|
||||||
|
$config->delete($name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue