We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84173d3 commit 0629f45Copy full SHA for 0629f45
js/view-action/toolbar.js
@@ -683,10 +683,10 @@ return Backbone.View.extend({
683
}
684
}else{
685
// TODO fix bug w/ insert when filter applied => dup record
686
- var updateModel = this.getData(true);
687
- this.model.set(updateModel);
688
- this.model.save({}, {
689
- //patch: true,
+ var updatedModel = this.getData(true);
+ this.model.set(updatedModel);
+ this.model.save(this.model.changedAttributes(), {
+ patch: !this.model.isNew(),
690
success: function(m){
691
fnSuccess(m);
692
that.collection.set(m, {remove:false});
0 commit comments