Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f06c688a

Von Jan Büren vor mehr als 2 Jahren hinzugefügt

  • ID f06c688a487f036743ca60719032b321f3c0282c
  • Vorgänger 67677b52
  • Nachfolger bfb6853f

ShopPart-Controller Kosmetik -> Einrückungen

Unterschiede anzeigen:

SL/Controller/ShopPart.pm
266 266

  
267 267
sub action_update {
268 268
  my ($self) = @_;
269

  
270 269
  $self->create_or_update;
271 270
}
272 271

  
......
288 287
  my ($self) = @_;
289 288

  
290 289
  my $is_new = !$self->shop_part->id;
291

  
292 290
  my $params = delete($::form->{shop_part}) || { };
293

  
294 291
  $self->shop_part->assign_attributes(%{ $params });
295

  
296 292
  $self->shop_part->save;
297 293

  
298 294
  my ( $price, $price_src_str ) = $self->get_price_n_pricesource($self->shop_part->active_price_source);
299
if(!$is_new){
300
  flash('info', $is_new ? t8('The shop part has been created.') : t8('The shop part has been saved.'));
301
  $self->js->html('#shop_part_description_' . $self->shop_part->id, $self->shop_part->shop_description)
295

  
296
  if(!$is_new){
297
    flash('info', $is_new ? t8('The shop part has been created.') : t8('The shop part has been saved.'));
298
    $self->js->html('#shop_part_description_' . $self->shop_part->id, $self->shop_part->shop_description)
302 299
           ->html('#shop_part_active_' . $self->shop_part->id, $self->shop_part->active)
303 300
           ->html('#price_' . $self->shop_part->id, $::form->format_amount(\%::myconfig,$price,2))
304 301
           ->html('#active_price_source_' . $self->shop_part->id, $price_src_str)

Auch abrufbar als: Unified diff