Skip to content

Commit

Permalink
Improve pre-pop filter context fieldcapture#2981
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Sep 7, 2023
1 parent 9081e97 commit 9698a7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grails-app/assets/javascripts/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ function orEmptyArray(v) {
}
result = _.filter(result, function(item) {
var expression = conf.filter.expression;
return ecodata.forms.expressionEvaluator().evaluateBoolean(expression, item);
var itemContext = _.extend({}, item, {$context:context, $config:config});
return ecodata.forms.expressionEvaluator.evaluateBoolean(expression, itemContext);
});
}
if (mapping) {
Expand Down

0 comments on commit 9698a7c

Please sign in to comment.