Show part lots and orderdetails with a name in target column if it exists.

This commit is contained in:
Jan Böhmer 2020-03-28 18:55:02 +01:00
parent 71fa827784
commit 7cf500279e
3 changed files with 22 additions and 3 deletions

View file

@ -45,6 +45,7 @@ namespace App\DataTables\Column;
use App\Entity\Attachments\Attachment;
use App\Entity\Base\AbstractDBElement;
use App\Entity\Base\AbstractNamedDBElement;
use App\Entity\Contracts\NamedElementInterface;
use App\Entity\LogSystem\AbstractLogEntry;
use App\Entity\Parameters\AbstractParameter;
use App\Entity\Parts\PartLot;
@ -98,7 +99,7 @@ class LogEntryTargetColumn extends AbstractColumn
$tmp = '';
//The element is existing
if ($target instanceof AbstractNamedDBElement) {
if ($target instanceof NamedElementInterface && !empty($target->getName())) {
try {
$tmp = sprintf(
'<a href="%s">%s</a>',