Rename 'object' to 'obj' in filters

refs #9077
This commit is contained in:
Gunnar Beutner 2015-11-07 10:01:07 +01:00
parent 64376dafeb
commit b89a7dbdb6
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ For example when querying objects of type `Host` the variable in the filter expr
`host`. Additionally related objects such as the host's check command are also made available `host`. Additionally related objects such as the host's check command are also made available
(e.g., via the `check_command` variable). (e.g., via the `check_command` variable).
The object is also made available via the `object` variable. This makes it easier to build The object is also made available via the `obj` variable. This makes it easier to build
filters which can be used for more than one object type (e.g., for permissions). filters which can be used for more than one object type (e.g., for permissions).
> **Note** > **Note**

View File

@ -112,7 +112,7 @@ bool FilterUtility::EvaluateFilter(ScriptFrame& frame, Expression *filter,
} else } else
vars = frame.Self; vars = frame.Self;
vars->Set("object", target); vars->Set("obj", 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++) {