File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Sales/Ui/Component/Listing/Column Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Framework \App \ObjectManager ;
11
11
use Magento \Framework \View \Element \UiComponent \ContextInterface ;
12
12
use Magento \Framework \View \Element \UiComponentFactory ;
13
+ use Magento \Store \Model \Store ;
13
14
use Magento \Store \Model \StoreManagerInterface ;
14
15
use Magento \Ui \Component \Listing \Columns \Column ;
15
16
use Magento \Framework \Pricing \PriceCurrencyInterface ;
@@ -77,8 +78,10 @@ public function prepareDataSource(array $dataSource)
77
78
foreach ($ dataSource ['data ' ]['items ' ] as & $ item ) {
78
79
$ currencyCode = isset ($ item ['base_currency_code ' ]) ? $ item ['base_currency_code ' ] : null ;
79
80
if (!$ currencyCode ) {
81
+ $ storeId = isset ($ item ['store_id ' ]) && (int )$ item ['store_id ' ] !== 0 ? $ item ['store_id ' ] :
82
+ $ this ->context ->getFilterParam ('store_id ' , Store::DEFAULT_STORE_ID );
80
83
$ store = $ this ->storeManager ->getStore (
81
- $ this -> context -> getFilterParam ( ' store_id ' , \ Magento \ Store \ Model \Store:: DEFAULT_STORE_ID )
84
+ $ storeId
82
85
);
83
86
$ currencyCode = $ store ->getBaseCurrency ()->getCurrencyCode ();
84
87
}
You can’t perform that action at this time.
0 commit comments