From 64376dafebfc7ad2d62c235080a2b89d4f9adddd Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 7 Nov 2015 09:58:09 +0100 Subject: [PATCH] Make the main object available as 'object' in filter expressions refs #9077 --- lib/remote/filterutility.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/remote/filterutility.cpp b/lib/remote/filterutility.cpp index 8ae5a575a..a0e51f851 100644 --- a/lib/remote/filterutility.cpp +++ b/lib/remote/filterutility.cpp @@ -112,6 +112,7 @@ bool FilterUtility::EvaluateFilter(ScriptFrame& frame, Expression *filter, } else vars = frame.Self; + vars->Set("object", target); vars->Set(varName, target); for (int fid = 0; fid < type->GetFieldCount(); fid++) {