Revision 72903759
Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt
SL/IC.pm | ||
---|---|---|
548 | 548 |
# commit |
549 | 549 |
my $rc = $dbh->commit; |
550 | 550 |
|
551 |
# if ( $form->{shop} ) { # && $previous_values->{"shop_part_id"} ) { |
|
552 |
# my $part = SL::DB::Manager::Part->find_by( id => $form->{"id"} ); |
|
553 |
# die "no part" unless $part; |
|
554 |
# my %shophash = map { ( $_ =~ m/^shop_(.*)/ ) => $form->{$_} } grep { $_ =~ /^shop_/ } keys %$::form; |
|
555 |
# delete $shophash{show_date} unless $shophash{show_date}; |
|
556 |
# delete $shophash{sortorder} unless $shophash{sortorder}; |
|
557 |
# |
|
558 |
# my $shop_part; |
|
559 |
# if ( $part->shop_part ) { |
|
560 |
# # update existing shop_port |
|
561 |
# $shop_part = $part->shop_part; |
|
562 |
# foreach ( keys %shophash ) { |
|
563 |
# $shop_part->$_( $shophash{$_} ); |
|
564 |
# }; |
|
565 |
# } else { |
|
566 |
# # shop_part didn't exist yet |
|
567 |
# $shop_part = SL::DB::ShopPart->new( %shophash )->save; |
|
568 |
# $part->shop_part_id( $shop_part->id ); |
|
569 |
# $part->save; |
|
570 |
# }; |
|
571 |
# # TODO: make part of request |
|
572 |
# $shop_part->save; |
|
573 |
# }; |
|
574 |
|
|
575 |
|
|
551 | 576 |
$main::lxdebug->leave_sub(); |
552 | 577 |
|
553 | 578 |
return $rc; |
Auch abrufbar als: Unified diff
Shop - Einführung von ShopParts
Erster Test mit einem Shop Reiter in Artikelmaske