diff --git a/@salix/crud/src/client/basic-data/index.js b/@salix/crud/src/client/basic-data/index.js index 3bdc10828..e33bf2f9b 100644 --- a/@salix/crud/src/client/basic-data/index.js +++ b/@salix/crud/src/client/basic-data/index.js @@ -35,8 +35,7 @@ export const COMPONENT = { if (!equalsObject(this.client, this.clientOld)) { var newClient = modified(this.client, this.clientOld); newClient.modify = "BasicData"; - newClient.id = this.clientOld.id; - $http.put('/client/api/Clients', newClient).then( + $http.put(`/client/api/Clients/${this.clientOld.id}`, newClient).then( json => { copyObject(json.data, this.client); this.copyClient(); diff --git a/@salix/crud/src/client/card/card.js b/@salix/crud/src/client/card/card.js index 9057da916..396473fd6 100644 --- a/@salix/crud/src/client/card/card.js +++ b/@salix/crud/src/client/card/card.js @@ -10,7 +10,7 @@ export const COMPONENT = { controllerAs: 'card', controller: function($http, $stateParams) { this.client = null; - $http.get(`/client/api/Clients/${$stateParams.id}`).then( + $http.get(`/client/api/Clients/${$stateParams.id}?filter[include][account]`).then( json => this.client = json.data ); diff --git a/@salix/crud/src/client/fiscal-data/index.js b/@salix/crud/src/client/fiscal-data/index.js index 1ea6c3515..759eaa361 100644 --- a/@salix/crud/src/client/fiscal-data/index.js +++ b/@salix/crud/src/client/fiscal-data/index.js @@ -16,8 +16,7 @@ export const COMPONENT = { if (!equalsObject(this.client, this.clientOld)) { var newClient = modified(this.client, this.clientOld); newClient.modify = "FiscalData"; - newClient.id = this.clientOld.id; - $http.put('/client/api/Clients', this.client).then( + $http.put(`/client/api/Clients/${this.clientOld.id}`, newClient).then( json => { this.client = json.data; this.copyClient();