diff --git a/grails-app/assets/javascripts/forms.js b/grails-app/assets/javascripts/forms.js index 9e0bb60..329243f 100644 --- a/grails-app/assets/javascripts/forms.js +++ b/grails-app/assets/javascripts/forms.js @@ -1575,6 +1575,11 @@ function orEmptyArray(v) { return deferred; }; + self.clearDataIfOutputMarkedAsNotCompleted = function() { + if (self.outputNotCompleted() && self.dirtyFlag && self.dirtyFlag.isDirty()) { + self.loadData({}); + } + } }; }());