diff --git a/src/EventSubscriber/EventLoggerSubscriber.php b/src/EventSubscriber/EventLoggerSubscriber.php index 489c2e12..f6c89e14 100644 --- a/src/EventSubscriber/EventLoggerSubscriber.php +++ b/src/EventSubscriber/EventLoggerSubscriber.php @@ -30,6 +30,7 @@ use App\Entity\LogSystem\CollectionElementDeleted; use App\Entity\LogSystem\ElementCreatedLogEntry; use App\Entity\LogSystem\ElementDeletedLogEntry; use App\Entity\LogSystem\ElementEditedLogEntry; +use App\Entity\Parameters\AbstractParameter; use App\Entity\Parts\PartLot; use App\Entity\PriceInformations\Orderdetail; use App\Entity\PriceInformations\Pricedetail; @@ -59,6 +60,7 @@ class EventLoggerSubscriber implements EventSubscriber Orderdetail::class => ['part'], Pricedetail::class => ['orderdetail'], Attachment::class => ['element'], + AbstractParameter::class => ['element'] ]; protected const MAX_STRING_LENGTH = 2000; diff --git a/src/Services/LogSystem/HistoryHelper.php b/src/Services/LogSystem/HistoryHelper.php index 8a05c88b..88a209e4 100644 --- a/src/Services/LogSystem/HistoryHelper.php +++ b/src/Services/LogSystem/HistoryHelper.php @@ -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; } }