From 475337f5dc9465fc1a8e05abe20edd1a4c6f2dd1 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 19 Sep 2023 17:16:52 +0000 Subject: [PATCH] fix value change log --- Controller/ApiAttributeController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index 3372b55..a524158 100644 --- a/Controller/ApiAttributeController.php +++ b/Controller/ApiAttributeController.php @@ -231,7 +231,9 @@ final class ApiAttributeController extends Controller $this->updateModel($request->header->account, $old, $new, ContractAttributeMapper::class, 'contract_attribute', $request->getOrigin()); - if ($new->value->getValue() !== $old->value->getValue()) { + if ($new->value->getValue() !== $old->value->getValue() + && $new->type->custom + ) { $this->updateModel($request->header->account, $old->value, $new->value, ContractAttributeValueMapper::class, 'attribute_value', $request->getOrigin()); }