Improved history handling of parameters.

This commit is contained in:
Jan Böhmer 2020-03-28 17:19:02 +01:00
parent f8af23b92b
commit 70c1fb7cc4
2 changed files with 7 additions and 0 deletions

View file

@ -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;
}
}