Skip to content

Commit f95b59f

Browse files
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #15240: Remove unused namespace from ui export (by @yuriyDne) - #15203: [Backport 2.1] Fix for displaying a negative price for a custom option (by @dverkade) - #15176: Fixed format of purchase date in order grid again. (by @hostep)
2 parents 1d2f444 + bf0b5df commit f95b59f

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

app/code/Magento/Catalog/view/base/web/js/price-options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ define([
1919
optionConfig: {},
2020
optionHandlers: {},
2121
optionTemplate: '<%= data.label %>' +
22-
'<% if (data.finalPrice.value) { %>' +
22+
'<% if (data.finalPrice.value > 0) { %>' +
2323
' +<%- data.finalPrice.formatted %>' +
24+
'<% } else if (data.finalPrice.value < 0) { %>' +
25+
' <%- data.finalPrice.formatted %>' +
2426
'<% } %>',
2527
controlContainer: 'dd'
2628
};

app/code/Magento/Sales/view/adminhtml/ui_component/sales_order_grid.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@
187187
<item name="dataType" xsi:type="string">date</item>
188188
<item name="label" xsi:type="string" translate="true">Purchase Date</item>
189189
<item name="sorting" xsi:type="string">desc</item>
190-
<item name="dateFormat" xsi:type="string">MMM dd, YYYY, H:mm:ss A</item>
191190
</item>
192191
</argument>
193192
</column>

app/code/Magento/Ui/Model/Export/ConvertToCsv.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Magento\Framework\App\Filesystem\DirectoryList;
99
use Magento\Framework\Exception\LocalizedException;
1010
use Magento\Framework\Filesystem;
11-
use Magento\Framework\Filesystem\Directory\WriteInterface;
1211
use Magento\Ui\Component\MassAction\Filter;
1312

1413
/**
@@ -17,7 +16,7 @@
1716
class ConvertToCsv
1817
{
1918
/**
20-
* @var WriteInterface
19+
* @var DirectoryList
2120
*/
2221
protected $directory;
2322

app/code/Magento/Ui/Model/Export/ConvertToXml.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Magento\Framework\Convert\ExcelFactory;
1313
use Magento\Framework\Exception\LocalizedException;
1414
use Magento\Framework\Filesystem;
15-
use Magento\Framework\Filesystem\Directory\WriteInterface;
1615
use Magento\Ui\Component\MassAction\Filter;
1716

1817
/**
@@ -21,7 +20,7 @@
2120
class ConvertToXml
2221
{
2322
/**
24-
* @var WriteInterface
23+
* @var DirectoryList
2524
*/
2625
protected $directory;
2726

0 commit comments

Comments
 (0)