mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 11:24:31 +02:00
Improved history handling of parameters.
This commit is contained in:
parent
f8af23b92b
commit
70c1fb7cc4
2 changed files with 7 additions and 0 deletions
|
@ -25,6 +25,7 @@ namespace App\Services\LogSystem;
|
|||
|
||||
use App\Entity\Attachments\AttachmentContainingDBElement;
|
||||
use App\Entity\Base\AbstractDBElement;
|
||||
use App\Entity\Base\AbstractStructuralDBElement;
|
||||
use App\Entity\Parts\Part;
|
||||
|
||||
class HistoryHelper
|
||||
|
@ -57,6 +58,10 @@ class HistoryHelper
|
|||
}
|
||||
}
|
||||
|
||||
if ($element instanceof Part || $element instanceof AbstractStructuralDBElement) {
|
||||
$array = array_merge($array, $element->getParameters()->toArray());
|
||||
}
|
||||
|
||||
return $array;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue