fix double log for default attribute value changes

This commit is contained in:
Dennis Eichhorn 2023-09-19 03:51:45 +00:00
parent c01b4c051a
commit 8fb0bd1739

View File

@ -231,7 +231,9 @@ final class ApiAttributeController extends Controller
$this->updateModel($request->header->account, $old, $new, ItemAttributeMapper::class, 'item_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, ItemAttributeValueMapper::class, 'attribute_value', $request->getOrigin());
}