only log value changes for custom values

This commit is contained in:
Dennis Eichhorn 2023-09-20 01:37:40 +00:00
parent 1c80860b50
commit 2dc50481ce

View File

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