Skip to content

Commit 8e7db56

Browse files
author
Oleksandr Dubovyk
committed
MC-37371: Wrong currency sign in Credit Memo grid
- changed from Create to Get in constructor
1 parent 0767ff7 commit 8e7db56

File tree

1 file changed

+6
-5
lines changed
  • app/code/Magento/Sales/Ui/Component/Listing/Column

1 file changed

+6
-5
lines changed

app/code/Magento/Sales/Ui/Component/Listing/Column/Price.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Magento\Sales\Ui\Component\Listing\Column;
99

10+
use Magento\Framework\App\ObjectManager;
1011
use Magento\Framework\View\Element\UiComponent\ContextInterface;
1112
use Magento\Framework\View\Element\UiComponentFactory;
1213
use Magento\Store\Model\StoreManagerInterface;
@@ -45,7 +46,7 @@ class Price extends Column
4546
* @param array $components
4647
* @param array $data
4748
* @param Currency $currency
48-
* @param StoreManagerInterface|null $storeManager
49+
* @param StoreManagerInterface $storeManager
4950
*/
5051
public function __construct(
5152
ContextInterface $context,
@@ -57,10 +58,10 @@ public function __construct(
5758
StoreManagerInterface $storeManager = null
5859
) {
5960
$this->priceFormatter = $priceFormatter;
60-
$this->currency = $currency ?: \Magento\Framework\App\ObjectManager::getInstance()
61-
->create(Currency::class);
62-
$this->storeManager = $storeManager ?: \Magento\Framework\App\ObjectManager::getInstance()
63-
->create(StoreManagerInterface::class);
61+
$this->currency = $currency ?: ObjectManager::getInstance()
62+
->get(Currency::class);
63+
$this->storeManager = $storeManager ?: ObjectManager::getInstance()
64+
->get(StoreManagerInterface::class);
6465
parent::__construct($context, $uiComponentFactory, $components, $data);
6566
}
6667

0 commit comments

Comments
 (0)