Skip to content

Commit b117b0c

Browse files
committed
Grid Export rendered data is not reflecting in the exported File, Displayed ID instead of Rendered Label #25963.
Removed deprecated class.
1 parent 6b434ba commit b117b0c

File tree

5 files changed

+2
-197
lines changed

5 files changed

+2
-197
lines changed

app/code/Magento/Sales/Model/ResourceModel/Order/Invoice/Grid/Collection.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@
99
use Magento\Framework\Data\Collection\Db\FetchStrategyInterface as FetchStrategy;
1010
use Magento\Framework\Data\Collection\EntityFactoryInterface as EntityFactory;
1111
use Magento\Framework\Event\ManagerInterface as EventManager;
12-
use Magento\Sales\Ui\Component\DataProvider\Document;
1312
use Psr\Log\LoggerInterface as Logger;
1413

1514
class Collection extends \Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult
1615
{
17-
/**
18-
* @inheritdoc
19-
*/
20-
protected $document = Document::class;
21-
2216
/**
2317
* Initialize dependencies.
2418
*

app/code/Magento/Sales/Test/Unit/Ui/Component/DataProvider/DocumentTest.php

Lines changed: 0 additions & 98 deletions
This file was deleted.

app/code/Magento/Sales/Ui/Component/DataProvider/Document.php

Lines changed: 0 additions & 91 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function getRowData(DocumentInterface $document, $fields, $options): arra
174174
if (isset($options[$column][$key])) {
175175
$row[] = $options[$column][$key];
176176
} else {
177-
$row[] = '';
177+
$row[] = $key;
178178
}
179179
} else {
180180
$row[] = $document->getCustomAttribute($column)->getValue();

app/code/Magento/Ui/Test/Unit/Model/Export/MetadataProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function getRowDataProvider()
261261
],
262262
],
263263
'expected' => [
264-
'',
264+
'key_2',
265265
],
266266
],
267267
[

0 commit comments

Comments
 (0)