Skip to content

Commit 28049fc

Browse files
committed
MAGETWO-83706: Scheduled Update to existing Group Price / Special Price removes the previously configured price, or results in changes not being saved
1 parent 16506fe commit 28049fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/TierPrice/SaveHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private function prepareTierPrice(array $data): array
155155
$this->getAdditionalFields($data),
156156
[
157157
'website_id' => $data['website_id'],
158-
'all_groups' => $useForAllGroups ? 1 : 0,
158+
'all_groups' => (int)$useForAllGroups,
159159
'customer_group_id' => $customerGroupId,
160160
'value' => $data['price'] ?? null,
161161
'qty' => (int)$data['price_qty']

app/code/Magento/Catalog/Model/Product/Attribute/Backend/TierPrice/UpdateHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ private function prepareTierPrice(array $data): array
259259
$this->getAdditionalFields($data),
260260
[
261261
'website_id' => $data['website_id'],
262-
'all_groups' => $useForAllGroups ? 1 : 0,
262+
'all_groups' => (int)$useForAllGroups,
263263
'customer_group_id' => $customerGroupId,
264264
'value' => $data['price'] ?? null,
265265
'qty' => (int)$data['price_qty']

0 commit comments

Comments
 (0)