diff --git a/@salix/crud/src/client/create/index.html b/@salix/crud/src/client/create/index.html index 0371f986fe..c8f4d4a558 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 83adcb6a29..9f0bd7479d 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);