ObjectSuggestions: Don't split custom var paths more than once

This commit is contained in:
Johannes Meyer 2023-06-23 09:41:45 +02:00
parent 66e05f9be7
commit d9d3c074fb

View file

@ -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') {