Skip to content

Commit

Permalink
ENGCOM-1035: [Foward-Port of #14156] Add website- and storeview-code …
Browse files Browse the repository at this point in the history
…in stores admin grid #14157

 - Merge Pull Request #14157 from aschrammel/magento2:2.3-develop
 - Merged commits:
   1. 6f73126
   2. 1e5745d
   3. 8004cc5
  • Loading branch information
magento-engcom-team committed Mar 23, 2018
2 parents 81f7b73 + 8004cc5 commit 1cdb1a8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function render(\Magento\Framework\DataObject $row)
$this->getUrl('adminhtml/*/editGroup', ['group_id' => $row->getGroupId()]) .
'">' .
$this->escapeHtml($row->getData($this->getColumn()->getIndex())) .
'</a>';
'</a><br />'
. '(' . __('Code') . ': ' . $row->getGroupCode() . ')';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function render(\Magento\Framework\DataObject $row)
$this->getUrl('adminhtml/*/editStore', ['store_id' => $row->getStoreId()]) .
'">' .
$this->escapeHtml($row->getData($this->getColumn()->getIndex())) .
'</a>';
'</a><br />' .
'(' . __('Code') . ': ' . $row->getStoreCode() . ')';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function render(\Magento\Framework\DataObject $row)
$this->getUrl('adminhtml/*/editWebsite', ['website_id' => $row->getWebsiteId()]) .
'">' .
$this->escapeHtml($row->getData($this->getColumn()->getIndex())) .
'</a>';
'</a><br />' .
'(' . __('Code') . ': ' . $row->getCode() . ')';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ public function joinGroupAndStore()
$this->getSelect()->joinLeft(
['group_table' => $this->getTable('store_group')],
'main_table.website_id = group_table.website_id',
['group_id' => 'group_id', 'group_title' => 'name']
['group_id' => 'group_id', 'group_title' => 'name', 'group_code' => 'code']
)->joinLeft(
['store_table' => $this->getTable('store')],
'group_table.group_id = store_table.group_id',
['store_id' => 'store_id', 'store_title' => 'name']
['store_id' => 'store_id', 'store_title' => 'name', 'store_code' => 'code']
);
$this->addOrder('group_table.name', \Magento\Framework\DB\Select::SQL_ASC) // store name
->addOrder(
Expand Down

0 comments on commit 1cdb1a8

Please sign in to comment.