mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-22 19:31:32 +00:00
Handle linter errors, add missing changes in TagFinder
This commit is contained in:
parent
3a3ad1e147
commit
adf95f6f84
3 changed files with 20 additions and 15 deletions
|
|
@ -94,7 +94,7 @@ implode(',', array_map(static fn (PartLot $lot) => $lot->getID(), $part->getPart
|
|||
}
|
||||
|
||||
return new RedirectResponse(
|
||||
$this->urlGenerator->generate($target_id !== 0 && $target_id !== null ? 'label_dialog_profile' : 'label_dialog', [
|
||||
$this->urlGenerator->generate($target_id !== null && intval($target_id) !== 0 ? 'label_dialog_profile' : 'label_dialog', [
|
||||
'profile' => $target_id,
|
||||
'target_id' => $targets,
|
||||
'generate' => '1',
|
||||
|
|
@ -107,7 +107,7 @@ implode(',', array_map(static fn (PartLot $lot) => $lot->getID(), $part->getPart
|
|||
$matches = [];
|
||||
if (preg_match('/^export_(json|yaml|xml|csv)$/', $action, $matches)) {
|
||||
$ids = implode(',', array_map(static fn (Part $part) => $part->getID(), $selected_parts));
|
||||
$level = match ($target_id) {
|
||||
$level = match (intval($target_id)) {
|
||||
2 => 'extended',
|
||||
3 => 'full',
|
||||
default => 'simple',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue