Issue Bug Closed

#16551Cannot reset settings via admPanel.override

Miroslav Monkevic 09/11/06, 18:38 updated 09/05/13, 09:09

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.