mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-16 04:08:43 +00:00
fix double log for default attribute value changes
This commit is contained in:
parent
c01b4c051a
commit
8fb0bd1739
|
|
@ -231,7 +231,9 @@ final class ApiAttributeController extends Controller
|
||||||
|
|
||||||
$this->updateModel($request->header->account, $old, $new, ItemAttributeMapper::class, 'item_attribute', $request->getOrigin());
|
$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());
|
$this->updateModel($request->header->account, $old->value, $new->value, ItemAttributeValueMapper::class, 'attribute_value', $request->getOrigin());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user