Skip to content

Commit

Permalink
add oxremark to ordersearch
Browse files Browse the repository at this point in the history
  • Loading branch information
tabsl committed Feb 12, 2021
1 parent b630c31 commit e0eb46e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Controller/Admin/NavigationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected function _getOxcomAdminSearchCmsPages()
protected function _getOxcomAdminSearchOrders()
{
$sViewName = $this->_sViewNameGenerator->getViewName("oxorder");
$sSql = "SELECT oxid, CONCAT(oxordernr, ' / ', oxbillfname, ' ', oxbilllname, ' / ', oxbillemail, ' / ', oxtrackcode) AS search FROM $sViewName WHERE CONCAT(oxordernr, oxbillfname, oxbilllname, oxbillemail, oxtrackcode) LIKE " . \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quote('%' . $this->_sQueryName . '%');
$sSql = "SELECT oxid, CONCAT(oxordernr, ' / ', oxbillfname, ' ', oxbilllname, ' / ', oxbillemail, ' / ', oxtrackcode, ' / ', oxremark) AS search FROM $sViewName WHERE CONCAT(oxordernr, oxbillfname, oxbilllname, oxbillemail, oxtrackcode, oxremark) LIKE " . \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quote('%' . $this->_sQueryName . '%');

return $this->_getOxcomAdminSearchData($sSql, 'admin_order');
}
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ composer require oxid-community/adminsearch

# Changelog

2020-02-21 1.2.0 add oxremark to ordersearch
2020-08-25 1.1.1 improve searches, fix ordersearch
2020-08-24 1.1.0 improve ordersearch (add oxtrackcode)
2018-03-23 1.0.4 search companies
2017-12-12 1.0.3 typo module title, fix module search
2018-03-23 1.0.4 search companies
2017-12-12 1.0.3 typo module title, fix module search
2017-12-10 1.0.2 fix search class using module settings
2017-12-09 1.0.1 add translation, fix article search oxartnum
2017-12-09 1.0.0 module release
2 changes: 1 addition & 1 deletion metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'de' => 'Globale Suche im Shop-Admin',
'en' => 'Global search shop admin'
],
'version' => '1.0.4',
'version' => '1.2.0',
'author' => 'OXID Community',
'url' => 'https://github.com/OXIDprojects/adminsearch',
'extend' => [
Expand Down

0 comments on commit e0eb46e

Please sign in to comment.