Skip to content

Commit

Permalink
Clear data from a form section marked n/a on save #3097
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Feb 14, 2024
1 parent 330575d commit 41a11bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions grails-app/assets/javascripts/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,11 @@ function orEmptyArray(v) {
return deferred;
};

self.clearDataIfOutputMarkedAsNotCompleted = function() {
if (self.outputNotCompleted() && self.dirtyFlag && self.dirtyFlag.isDirty()) {
self.loadData({});
}
}

};
}());

0 comments on commit 41a11bd

Please sign in to comment.