Skip to content

Commit

Permalink
fix new m2o value (Closes #1748, Ref #1737)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Aug 19, 2017
1 parent 7001c12 commit d6e2288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/interfaces/many_to_one/interface.js
Expand Up @@ -51,7 +51,7 @@ define([

beforeSaving: function () {
// NOTE: Only set the new value (mark changed) if the value has changed
if (this.value && this.model.hasChanges(this.name)) {
if (this.value && (this.model.isNew() || this.model.hasChanges(this.name))) {
this.model.set(this.name, this.value);
}
},
Expand Down

0 comments on commit d6e2288

Please sign in to comment.