Revision de53e9a8
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
SL/Controller/PriceRule.pm | ||
---|---|---|
70 | 70 |
sub action_destroy { |
71 | 71 |
my ($self) = @_; |
72 | 72 |
|
73 |
$self->price_rule->obsolete(1); |
|
74 |
$self->price_rule->save; |
|
75 |
flash_later('info', $::locale->text('The price rule has been obsoleted.')); |
|
73 |
$self->price_rule->delete; |
|
74 |
flash_later('info', $::locale->text('The price rule has been deleted.')); |
|
76 | 75 |
|
77 |
$self->redirect_to(action => 'list');
|
|
76 |
$self->redirect_to($::form->{callback} || (action => 'list'));
|
|
78 | 77 |
} |
79 | 78 |
|
80 | 79 |
sub action_add_item_row { |
Auch abrufbar als: Unified diff
PriceRule: Löschen von Preisregeln