mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 11:48:49 +02:00
Fixed exception on project info page, when BOM contained non part entries
This commit is contained in:
parent
64e7ce4ad6
commit
4e3cad577e
1 changed files with 5 additions and 1 deletions
|
@ -67,7 +67,11 @@ class EntityColumn extends AbstractColumn
|
|||
$resolver->setDefault('render', function (Options $options) {
|
||||
return function ($value, $context) use ($options) {
|
||||
/** @var AbstractNamedDBElement|null $entity */
|
||||
if ($this->accessor->isReadable($context, $options['property'])) {
|
||||
$entity = $this->accessor->getValue($context, $options['property']);
|
||||
} else {
|
||||
$entity = null;
|
||||
}
|
||||
|
||||
if (null !== $entity) {
|
||||
if (null !== $entity->getID()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue