From 07356fa42d92d55128b428ab73ef6e810b4e6171 Mon Sep 17 00:00:00 2001 From: jgallego Date: Mon, 23 Jan 2017 07:48:39 +0100 Subject: [PATCH] solucionado error guardado Web --- @salix/crud/src/client/web-access/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/@salix/crud/src/client/web-access/index.js b/@salix/crud/src/client/web-access/index.js index 938fdb1da..8c371ff76 100644 --- a/@salix/crud/src/client/web-access/index.js +++ b/@salix/crud/src/client/web-access/index.js @@ -15,6 +15,7 @@ export const COMPONENT = { this.submit = function() { if (!equalsObject(this.account, this.accountOld)) { this.client.modify = "WebAccess"; + this.account.id = this.client.id; $http.put('/client/api/Accounts', this.account).then( json => { this.account = json.data; @@ -53,9 +54,6 @@ export const COMPONENT = { json => { this.account = json.data; this.copyAccount(); - }, - json => { - this.account = {id: clientId}; } ); };