diff --git a/client/client/src/address-create/address-create.html b/client/client/src/address-create/address-create.html index 1b861f330..8f2cf1542 100644 --- a/client/client/src/address-create/address-create.html +++ b/client/client/src/address-create/address-create.html @@ -3,9 +3,10 @@ url="/client/api/Addresses" id-field="id" data="$ctrl.address" + save="post" form="form"> -
+ Address diff --git a/client/core/src/watcher/watcher.js b/client/core/src/watcher/watcher.js index 50dab47cf..cdcd2974a 100644 --- a/client/core/src/watcher/watcher.js +++ b/client/core/src/watcher/watcher.js @@ -94,7 +94,9 @@ export default class Watcher extends Component { (resolve, reject) => this.noChanges(reject) ); } - let changedData = (this.$attrs.save && this.$attrs.save.toLowerCase() === 'post') ? this.copyInNewObject(this.data) : getModifiedData(this.data, this.orgData); + let changedData = (this.$attrs.save && this.$attrs.save.toLowerCase() === 'post') + ? this.copyInNewObject(this.data) + : getModifiedData(this.data, this.orgData); if (this.save && this.save.accept) { this.save.model = changedData; // this.copyInNewObject(changedData);