Skip to content

Commit afbbff3

Browse files
committed
MAGETWO-89986: Can't delete an option from Fixed Product Tax
1 parent bbd6952 commit afbbff3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/code/Magento/Weee/Plugin/Catalog/Controller/Adminhtml/Product/Initialization/Helper/ProcessTaxAttribute.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22
/**
3-
* Product initialization helper
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
@@ -38,8 +36,12 @@ public function __construct(RequestInterface $request)
3836
*
3937
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4038
*/
41-
public function afterInitializeFromData(Helper $subject, Product $result, Product $product, array $productData)
42-
{
39+
public function afterInitializeFromData(
40+
Helper $subject,
41+
Product $result,
42+
Product $product,
43+
array $productData
44+
): Product {
4345
$attributes = $result->getAttributes();
4446
if (!empty($attributes)) {
4547
foreach ($attributes as $attribute) {

0 commit comments

Comments
 (0)