mirror of https://github.com/Icinga/icinga2.git
Fix incorrect variable names for joined fields in filter expressions
fixes #11779
This commit is contained in:
parent
fc889eb9ad
commit
de1b70cf44
|
@ -123,6 +123,9 @@ bool FilterUtility::EvaluateFilter(ScriptFrame& frame, Expression *filter,
|
|||
|
||||
Object::Ptr joinedObj = target->NavigateField(fid);
|
||||
|
||||
if (field.NavigationName)
|
||||
vars->Set(field.NavigationName, joinedObj);
|
||||
else
|
||||
vars->Set(field.Name, joinedObj);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue