Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision de53e9a8

Von Sven Schöling vor etwa 10 Jahren hinzugefügt

  • ID de53e9a856f69917fd37d00821d90e89d8185d55
  • Vorgänger 8fce0254
  • Nachfolger 0fe023a4

PriceRule: Löschen von Preisregeln

Unterschiede anzeigen:

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