Skip to content

Commit 8966a6a

Browse files
AC-12860: Weight unit issue fixed
2 parents 1b5111c + 0b0e4f3 commit 8966a6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Directory/Model/Config/Backend/WeightUnit.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Directory\Model\Config\Backend;
79

810
use Magento\Directory\Model\Config\Source\WeightUnit as Source;
@@ -64,6 +66,7 @@ public function beforeSave()
6466
throw new LocalizedException(__('There was an error save new configuration value.'));
6567
}
6668
}
69+
6770
return parent::beforeSave();
6871
}
6972

@@ -75,6 +78,7 @@ public function beforeSave()
7578
private function getOptions()
7679
{
7780
$options = $this->source->toOptionArray();
81+
7882
return array_column($options, 'value');
7983
}
8084
}

0 commit comments

Comments
 (0)