mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
Fix incorrect variable names for joined fields in filter expressions
fixes #11779
This commit is contained in:
parent
02af5e2df3
commit
1f2fe64220
@ -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…
x
Reference in New Issue
Block a user