Skip to content

Commit

Permalink
correction error when delete has been cancelled onece before saving m…
Browse files Browse the repository at this point in the history
  • Loading branch information
Burel Remy committed Oct 28, 2016
1 parent ae7e201 commit 7273f0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/javascripts/ng-admin/Crud/form/FormController.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export default class FormController {
))
.then(customHandlerReturnValue => {
if (customHandlerReturnValue === false) return;
$state.go(previousState.name, previousState.params)
// $state.go(previousState.name, previousState.params)
$state.go($state.get('list'), angular.extend({entity: this.entity.name()}, $state.params))
.then(() => progression.done())
.then(() => $translate('EDITION_SUCCESS'))
.then(text => notification.log(text, { addnCls: 'humane-flatty-success' }));
Expand Down

0 comments on commit 7273f0e

Please sign in to comment.