|
@@ -86,7 +86,7 @@ |
|
|
block discarded – undo |
|
86
|
86
|
if ($action === 'generate_label') { |
|
87
|
87
|
$targets = implode(',', array_map(static fn (Part $part) => $part->getID(), $selected_parts)); |
|
88
|
88
|
} else { //For lots we have to extract the part lots |
|
89
|
|
- $targets = implode(',', array_map(static function (Part $part) { |
|
|
89
|
+ $targets = implode(',', array_map(static function(Part $part) { |
|
90
|
90
|
//We concat the lot IDs of every part with a comma (which are later concated with a comma too per part) |
|
91
|
91
|
return implode(',', array_map(static fn (PartLot $lot) => $lot->getID(), $part->getPartLots()->toArray())); |
|
92
|
92
|
}, $selected_parts)); |
Please login to merge, or discard this patch.