From 2dc50481cea6f3b9d99e21ad8b04ca7f881a2767 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 20 Sep 2023 01:37:40 +0000 Subject: [PATCH] only log value changes for custom values --- Controller/ApiAttributeController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index 21f4c8e..dafef68 100755 --- a/Controller/ApiAttributeController.php +++ b/Controller/ApiAttributeController.php @@ -231,7 +231,9 @@ final class ApiAttributeController extends Controller $this->updateModel($request->header->account, $old, $new, BillAttributeMapper::class, 'bill_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, BillAttributeValueMapper::class, 'attribute_value', $request->getOrigin()); }