Commit 3a2c97a0 by asadiqbal

SOL-1188 fix

parent 58488eaa
......@@ -62,6 +62,10 @@ function (_, str, Backbone, BackboneRelational, BackboneAssociations, gettext, C
// Remember the current state of this model (enables edit->cancel use cases)
this._originalAttributes = this.parse(this.toJSON());
this.get("signatories").each(function (modelSignatory) {
modelSignatory.setOriginalAttributes();
});
// If no url is defined for the signatories child collection we'll need to create that here as well
if(!this.isNew() && !this.get('signatories').url) {
this.get('signatories').url = this.collection.url + '/' + this.get('id') + '/signatories';
......
......@@ -73,7 +73,6 @@ function ($, _, str, Backbone, gettext, TemplateUtils, ViewUtils, BaseView, Sign
actionableModel.save({}, {
success: function() {
actionableModel.setOriginalAttributes();
self.model.setOriginalAttributes();
dfd.resolve();
self.closeSignatoryEditView();
}.bind(this)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment