From b68760d0aeacb917532751a58c873b1ce14bb20a Mon Sep 17 00:00:00 2001 From: nelo Date: Mon, 16 Jan 2017 15:00:14 +0100 Subject: [PATCH] =?UTF-8?q?Al=20crear=20no=20se=20comprueba=20la=20introdu?= =?UTF-8?q?cci=C3=B3n=20de=20los=20datos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- @salix/crud/src/client/create/index.html | 1 - @salix/crud/src/client/create/index.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/@salix/crud/src/client/create/index.html b/@salix/crud/src/client/create/index.html index 0371f986f..c8f4d4a55 100644 --- a/@salix/crud/src/client/create/index.html +++ b/@salix/crud/src/client/create/index.html @@ -18,4 +18,3 @@ - diff --git a/@salix/crud/src/client/create/index.js b/@salix/crud/src/client/create/index.js index 83adcb6a2..9f0bd7479 100644 --- a/@salix/crud/src/client/create/index.js +++ b/@salix/crud/src/client/create/index.js @@ -7,11 +7,12 @@ export const COMPONENT = { controllerAs: "create", controller: function($http, $state) { this.submit = function() { + this.model.active = true; $http.post('/client/api/Clients', this.model).then( json => $state.go('clientCard.basicData', {id: json.data.id}) ); }; } }; -COMPONENT.controller.$inject = ["$http", "$state"]; +COMPONENT.controller.$inject = ['$http', '$state']; module.component(NAME, COMPONENT);