Skip to content

Commit

Permalink
Fix for dataLoader expression context in constraints #216
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Feb 29, 2024
1 parent 84df20c commit e7387cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grails-app/assets/javascripts/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ function orEmptyArray(v) {
function buildPrepopConstraints(constraintsConfig, constraintsDeferred) {
var defaultConstraints = constraintsConfig.defaults || [];
var constraintsObservable = ko.observableArray(defaultConstraints);
var dataLoaderContext = _.extend({}, context, {$parent:context.parent});
var dataLoaderContext = _.extend({}, context);
var dataLoader = ecodata.forms.dataLoader(dataLoaderContext, config);

ko.computed(function() {
Expand Down

0 comments on commit e7387cb

Please sign in to comment.