Skip to content

Commit 5d33cb1

Browse files
committed
Fix when strict = 1
1 parent 8c6cf82 commit 5d33cb1

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Tab/Options

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Tab/Options/Option.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ public function getCheckboxScopeHtml($id, $name, $checked = true, $select_id = '
478478
public function getPriceValue($value, $type)
479479
{
480480
if ($type == 'percent') {
481-
return number_format($value, 2, null, '');
481+
return number_format((float)$value, 2, null, '');
482482
} elseif ($type == 'fixed') {
483-
return number_format($value, 2, null, '');
483+
return number_format((float)$value, 2, null, '');
484484
}
485485
}
486486

0 commit comments

Comments
 (0)