diff --git a/front/core/mocks/crud-model.js b/front/core/mocks/crud-model.js index d2e4c74ce..e86f9d63e 100644 --- a/front/core/mocks/crud-model.js +++ b/front/core/mocks/crud-model.js @@ -4,19 +4,25 @@ module.exports = { order: {}, insert: () => { - return new Promise(accept => { - accept(); - }); + return { + then: callback => { + callback({data: {id: 1234}}); + } + }; }, remove: () => { - return new Promise(accept => { - accept(); - }); + return { + then: callback => { + callback({data: {id: 1234}}); + } + }; }, save: () => { - return new Promise(accept => { - accept(); - }); + return { + then: callback => { + callback({data: {id: 1234}}); + } + }; }, refresh: () => {}, addFilter: () => {}, diff --git a/modules/claim/front/basic-data/index.html b/modules/claim/front/basic-data/index.html index cbd610911..2887e5734 100644 --- a/modules/claim/front/basic-data/index.html +++ b/modules/claim/front/basic-data/index.html @@ -5,7 +5,7 @@ url="/api/Claims/{{$ctrl.$stateParams.id}}/updateClaim" save="post"> -