mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-03 22:05:03 -04:00
ObjectSuggestions: Don't split custom var paths more than once
This commit is contained in:
parent
66e05f9be7
commit
d9d3c074fb
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ class ObjectSuggestions extends Suggestions
|
|||
}
|
||||
|
||||
$columnPath = $query->getResolver()->qualifyPath($column, $model->getTableName());
|
||||
list($targetPath, $columnName) = preg_split('/(?<=vars)\.|\.(?=[^.]+$)/', $columnPath);
|
||||
list($targetPath, $columnName) = preg_split('/(?<=vars)\.|\.(?=[^.]+$)/', $columnPath, 2);
|
||||
|
||||
$isCustomVar = false;
|
||||
if (substr($targetPath, -5) === '.vars') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue