mirror of https://github.com/Icinga/icinga2.git
Fix incorrect variable names for joined objects in filters
fixes #10558
This commit is contained in:
parent
dcfc171c61
commit
2c135d82c1
|
@ -123,10 +123,7 @@ bool FilterUtility::EvaluateFilter(ScriptFrame& frame, Expression *filter,
|
|||
|
||||
Object::Ptr joinedObj = target->NavigateField(fid);
|
||||
|
||||
varName = field.TypeName;
|
||||
boost::algorithm::to_lower(varName);
|
||||
|
||||
vars->Set(varName, joinedObj);
|
||||
vars->Set(field.Name, joinedObj);
|
||||
}
|
||||
|
||||
return Convert::ToBool(filter->Evaluate(frame));
|
||||
|
|
Loading…
Reference in New Issue