mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 03:14:32 +02:00
Show BOM entries in projects history
This commit is contained in:
parent
e423ef1e09
commit
f618616379
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue