Show BOM entries in projects history

This commit is contained in:
Jan Böhmer 2023-01-08 19:14:24 +01:00
parent e423ef1e09
commit f618616379
2 changed files with 8 additions and 0 deletions

View file

@ -46,6 +46,7 @@ use App\Entity\Base\AbstractDBElement;
use App\Entity\Base\AbstractStructuralDBElement;
use App\Entity\Parameters\AbstractParameter;
use App\Entity\Parts\Part;
use App\Entity\ProjectSystem\Project;
class HistoryHelper
{
@ -81,6 +82,10 @@ class HistoryHelper
$array = array_merge($array, $element->getParameters()->toArray());
}
if ($element instanceof Project) {
$array = array_merge($array, $element->getBomEntries()->toArray());
}
return $array;
}
}