Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c9a7f5ce

Von Jan Büren vor fast 3 Jahren hinzugefügt

  • ID c9a7f5ce7b15336df30435c9089753b093bc4d7e
  • Vorgänger d21ddfce
  • Nachfolger b36c791b

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