Merge branch 'master' of ssh://git.verdnatura.es:/var/lib/git/salix

This commit is contained in:
nelo 2017-01-23 07:55:28 +01:00
commit 93c37ac964
1 changed files with 1 additions and 3 deletions

View File

@ -15,6 +15,7 @@ export const COMPONENT = {
this.submit = function() { this.submit = function() {
if (!equalsObject(this.account, this.accountOld)) { if (!equalsObject(this.account, this.accountOld)) {
this.client.modify = "WebAccess"; this.client.modify = "WebAccess";
this.account.id = this.client.id;
$http.put('/client/api/Accounts', this.account).then( $http.put('/client/api/Accounts', this.account).then(
json => { json => {
this.account = json.data; this.account = json.data;
@ -53,9 +54,6 @@ export const COMPONENT = {
json => { json => {
this.account = json.data; this.account = json.data;
this.copyAccount(); this.copyAccount();
},
json => {
this.account = {id: clientId};
} }
); );
}; };