#20020Not possible to blind in the advanced search the option
Description
Hi
It is not possible to blind the option ‘All pages on level 1’ (concerns apparently also ‘All pages on level 2’).
That would need an additional config, for example
…
blind {
…
sections.all_1_level=1
…
sections.all_2_level=1
…
}
and extra handling of these values.
// Blind selectors:
if (is_array($this->conf[‘blind.’])) {
foreach ($this->conf[‘blind.’] as $kk => $vv) {
if (is_array($vv)) {
foreach ($vv as $kkk => $vvv) {
if (!is_array($vvv) && $vvv && is_array($this->optValues[substr($kk,0,-1)])) {
unset($this->optValues[substr($kk,0,-1)][$kkk]);
}
}
} elseif ($vv) { // If value is not set, unset the option array.
unset($this->optValues[$kk]);
}
}
if($this->conf[‘blind.’][‘sections.’][‘all_1_level’])
unset($this->optValues[‘sections’][‘rl1_’.implode(‘,’,array_keys($firstLevelMenu))]);
if($this->conf[‘blind.’][‘sections.’][‘all_2_level’])
unset($this->optValues[‘sections’][‘rl2_’.implode(‘,’,array_keys($secondLevelMenu))]);
}
(issue imported from #M10441)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.