mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Controller: Normalize filter columns in the search bar
This commit is contained in:
parent
05a4a75447
commit
a7c230afaf
1 changed files with 5 additions and 0 deletions
|
|
@ -141,6 +141,11 @@ class Controller extends CompatController
|
|||
$filter = QueryString::fromString($this->getFilter()->toQueryString())
|
||||
->on(QueryString::ON_CONDITION, function (Condition $condition) use ($query) {
|
||||
$path = $condition->getColumn();
|
||||
if (strpos($path, '.') === false) {
|
||||
$path = $query->getResolver()->qualifyPath($path, $query->getModel()->getTableName());
|
||||
$condition->setColumn($path);
|
||||
}
|
||||
|
||||
if (strpos($path, '.vars.') !== false) {
|
||||
list($target, $varName) = explode('.vars.', $path);
|
||||
if (strpos($target, '.') === false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue