mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed static analyis issue
This commit is contained in:
parent
cbe010ee67
commit
706253ce74
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
|
use App\Entity\Base\AbstractNamedDBElement;
|
||||||
use App\Entity\Base\AbstractStructuralDBElement;
|
use App\Entity\Base\AbstractStructuralDBElement;
|
||||||
use App\Entity\Contracts\NamedElementInterface;
|
use App\Entity\Contracts\NamedElementInterface;
|
||||||
use App\Entity\LabelSystem\LabelProfile;
|
use App\Entity\LabelSystem\LabelProfile;
|
||||||
|
@ -170,7 +171,7 @@ class SelectAPIController extends AbstractController
|
||||||
'value' => $node->getID(),
|
'value' => $node->getID(),
|
||||||
'data-subtext' => $node->getParent() ? $node->getParent()->getFullPath() : null,
|
'data-subtext' => $node->getParent() ? $node->getParent()->getFullPath() : null,
|
||||||
];
|
];
|
||||||
} elseif ($node instanceof NamedElementInterface) {
|
} elseif ($node instanceof AbstractNamedDBElement) {
|
||||||
$entry = [
|
$entry = [
|
||||||
'text' => htmlspecialchars($node->getName()),
|
'text' => htmlspecialchars($node->getName()),
|
||||||
'value' => $node->getID(),
|
'value' => $node->getID(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue