mirror of https://github.com/Icinga/icinga2.git
Make the main object available as 'object' in filter expressions
refs #9077
This commit is contained in:
parent
3a695742e3
commit
64376dafeb
|
@ -112,6 +112,7 @@ bool FilterUtility::EvaluateFilter(ScriptFrame& frame, Expression *filter,
|
||||||
} else
|
} else
|
||||||
vars = frame.Self;
|
vars = frame.Self;
|
||||||
|
|
||||||
|
vars->Set("object", target);
|
||||||
vars->Set(varName, target);
|
vars->Set(varName, target);
|
||||||
|
|
||||||
for (int fid = 0; fid < type->GetFieldCount(); fid++) {
|
for (int fid = 0; fid < type->GetFieldCount(); fid++) {
|
||||||
|
|
Loading…
Reference in New Issue