Simple batch processing

This commit is contained in:
barisgit 2025-08-02 17:56:46 +02:00 committed by Jan Böhmer
parent aa29f10d51
commit 4c8940f9c3
9 changed files with 949 additions and 2 deletions

View file

@ -117,6 +117,16 @@ implode(',', array_map(static fn (PartLot $lot) => $lot->getID(), $part->getPart
);
}
if ($action === 'bulk_info_provider_import') {
$ids = implode(',', array_map(static fn (Part $part) => $part->getID(), $selected_parts));
return new RedirectResponse(
$this->urlGenerator->generate('bulk_info_provider_step1', [
'ids' => $ids,
'_redirect' => $redirect_url
])
);
}
//Iterate over the parts and apply the action to it:
foreach ($selected_parts as $part) {