Revision d0f42fe7
Von Sven Schöling vor fast 8 Jahren hinzugefügt
SL/Dev/Part.pm | ||
---|---|---|
49 | 49 |
|
50 | 50 |
for my $i ( 2 .. $number_of_parts ) { |
51 | 51 |
my $part = $parts[0]->clone_and_reset; |
52 |
$part->partnumber( $part->partnumber . " " . $i );
|
|
53 |
$part->description( $part->description . " " . $i );
|
|
52 |
$part->partnumber( ($part->partnumber // '') . " " . $i );
|
|
53 |
$part->description( ($part->description // '') . " " . $i );
|
|
54 | 54 |
$part->save; |
55 | 55 |
push(@parts, $part); |
56 | 56 |
} |
... | ... | |
84 | 84 |
|
85 | 85 |
for my $i ( 2 .. $number_of_parts ) { |
86 | 86 |
my $part = $parts[0]->clone_and_reset; |
87 |
$part->partnumber( $part->partnumber . " " . $i );
|
|
88 |
$part->description( $part->description . " " . $i );
|
|
87 |
$part->partnumber( ($part->partnumber // '') . " " . $i );
|
|
88 |
$part->description( ($part->description // '') . " " . $i );
|
|
89 | 89 |
$part->save; |
90 | 90 |
push(@parts, $part); |
91 | 91 |
} |
Auch abrufbar als: Unified diff
SL::Dev:: einige Warnungen