Skip to content

Commit

Permalink
Grid Export rendered data is not reflecting in the exported File, Dis…
Browse files Browse the repository at this point in the history
…played ID instead of Rendered Label #25963.

Removed deprecated class.
  • Loading branch information
novikor committed Jan 31, 2020
1 parent 6b434ba commit b117b0c
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 197 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@
use Magento\Framework\Data\Collection\Db\FetchStrategyInterface as FetchStrategy;
use Magento\Framework\Data\Collection\EntityFactoryInterface as EntityFactory;
use Magento\Framework\Event\ManagerInterface as EventManager;
use Magento\Sales\Ui\Component\DataProvider\Document;
use Psr\Log\LoggerInterface as Logger;

class Collection extends \Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult
{
/**
* @inheritdoc
*/
protected $document = Document::class;

/**
* Initialize dependencies.
*
Expand Down

This file was deleted.

91 changes: 0 additions & 91 deletions app/code/Magento/Sales/Ui/Component/DataProvider/Document.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/code/Magento/Ui/Model/Export/MetadataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function getRowData(DocumentInterface $document, $fields, $options): arra
if (isset($options[$column][$key])) {
$row[] = $options[$column][$key];
} else {
$row[] = '';
$row[] = $key;
}
} else {
$row[] = $document->getCustomAttribute($column)->getValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function getRowDataProvider()
],
],
'expected' => [
'',
'key_2',
],
],
[
Expand Down

0 comments on commit b117b0c

Please sign in to comment.