Revision 64031f04
Von Jan Büren vor mehr als 1 Jahr hinzugefügt
SL/DB/Part.pm | ||
---|---|---|
470 | 470 |
my $clone = $self->clone_and_reset; # resets id and partnumber (primary key and unique constraint) |
471 | 471 |
$clone->makemodels( map { $_->clone_and_reset } @{$self->makemodels} ) if @{$self->makemodels}; |
472 | 472 |
$clone->translations( map { $_->clone_and_reset } @{$self->translations} ) if @{$self->translations}; |
473 |
|
|
473 |
$clone->custom_variables( map { $_->clone_and_reset } @{$self->custom_variables} ) if @{$self->custom_variables}; |
|
474 | 474 |
if ( $self->is_assortment ) { |
475 | 475 |
# use clone rather than reset_and_clone because the unique constraint would also remove parts_id |
476 | 476 |
$clone->assortment_items( map { $_->clone } @{$self->assortment_items} ); |
Auch abrufbar als: Unified diff
Artikel als neu Speichern auch BDVs und Übersetzungen vom Vorgänger