#16551Cannot reset settings via admPanel.override
Description
I wasn’t able to turn off edit panel using User TSConfig code:
admPanel {
enable.all = 1
hide = 0
override {
edit = 1
edit {
displayFieldIcons = 1
displayIcons = 0
editFormsOnPage = 1
editNoPopup = 1
}
}
}
I believe this deals with bug 1518. (not sure though)
See pathch attached to 1518.
Code below does not take into account that $this->extAdminConfig[‘override.’][$pre.’.’][$val] can be 0.
// override all settings with user TSconfig
if ($this->extAdminConfig[‘override.’][$pre.’.’][$val] && $val) {
return $this->extAdminConfig[‘override.’][$pre.’.’][$val];
}
if ($this->extAdminConfig[‘override.’][$pre]) {
return $this->extAdminConfig[‘override.’][$pre];
}
(issue imported from #M4198)Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.