Skip to content

Commit

Permalink
1.2.2: #12
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Aug 1, 2023
1 parent c6698b5 commit 914c390
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ function beforePrepareProductAttributes(Sb $sb, P $p, array $data, array $useDef
# 2018-08-31
# "«Special Price» and «Сost» are set to `0` on a product save":
# https://github.com/mage2pro/currency-format/issues/3
if ('price' === $a->getFrontendInput() && !df_es($v = dfa($data, $k))) { /** @var string $v */
if (
'price' === $a->getFrontendInput()
/**
* 2023-08-02
* 1) «Dfe\CurrencyFormat\Plugin\Catalog\Controller\Adminhtml\Product\Initialization\Helper\AttributeFilter::parse():
* Argument #1 ($r) must be of type string, null given, called in vendor/mage2pro/currency-format/Plugin/Catalog/Controller/Adminhtml/Product/Initialization/Helper/AttributeFilter.php on line 30»
* 2) «special_price» can be `null`.
*/
&& !df_nes($v = dfa($data, $k))
) { /** @var string $v */
# 2018-08-30
# «Number normalization: getNumber($input, Array $options)»
# https://framework.zend.com/manual/1.12/en/zend.locale.parsing.html#zend.locale.number.normalize
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/currency-format"
,"version": "1.2.1"
,"version": "1.2.2"
,"description": "The «Price Format» extension for Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/price-format"
Expand Down

0 comments on commit 914c390

Please sign in to comment.