@@ -55,9 +55,9 @@ public function getOxcomAdminSearchResults()
5555 if ($ this ->getOxcomAdminSearchConfigParam ("blOxComAdminSearchShowCmsPages " )) {
5656 $ aData ["cmspages " ] = $ this ->_getOxcomAdminSearchCmsPages ();
5757 }
58- if ($ this ->getOxcomAdminSearchConfigParam ("blOxComAdminSearchShowOrders " )) {
59- $ aData ["orders " ] = $ this ->_getOxcomAdminSearchOrders ();
60- }
58+ // if ($this->getOxcomAdminSearchConfigParam("blOxComAdminSearchShowOrders")) {
59+ $ aData ["orders " ] = $ this ->_getOxcomAdminSearchOrders ();
60+ // }
6161 if ($ this ->getOxcomAdminSearchConfigParam ("blOxComAdminSearchShowUsers " )) {
6262 $ aData ["users " ] = $ this ->_getOxcomAdminSearchUsers ();
6363 }
@@ -98,7 +98,7 @@ public function getOxcomAdminSearchConfigParam($sParam = '')
9898 protected function _getOxcomAdminSearchArticles ()
9999 {
100100 $ sViewName = $ this ->_sViewNameGenerator ->getViewName ("oxarticles " );
101- $ sSql = "SELECT oxid, CONCAT(oxartnum, ' / ', oxtitle, '', oxvarselect) FROM $ sViewName WHERE CONCAT( oxartnum, oxtitle, oxvarselect) LIKE " . \OxidEsales \Eshop \Core \DatabaseProvider::getDb ()->quote ('% ' . $ this ->_sQueryName . '% ' );
101+ $ sSql = "SELECT oxid, CONCAT_WS( ' / ', oxartnum, oxtitle, '', oxvarselect) FROM $ sViewName WHERE CONCAT_WS(' / ', oxartnum, oxtitle, oxvarselect) LIKE " . \OxidEsales \Eshop \Core \DatabaseProvider::getDb ()->quote ('% ' . $ this ->_sQueryName . '% ' );
102102
103103 return $ this ->_getOxcomAdminSearchData ($ sSql , 'article ' );
104104 }
@@ -137,7 +137,7 @@ protected function _getOxcomAdminSearchCmsPages()
137137 protected function _getOxcomAdminSearchOrders ()
138138 {
139139 $ sViewName = $ this ->_sViewNameGenerator ->getViewName ("oxorder " );
140- $ 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 . '% ' );
140+ $ sSql = "SELECT oxid, CONCAT_WS( ' / ', oxordernr, oxbillfname, oxbilllname, oxbillemail, oxtrackcode, oxremark) AS search FROM $ sViewName WHERE CONCAT_WS(' / ', oxordernr, oxbillfname, oxbilllname, oxbillemail, oxtrackcode, oxremark) LIKE " . \OxidEsales \Eshop \Core \DatabaseProvider::getDb ()->quote ('% ' . $ this ->_sQueryName . '% ' );
141141
142142 return $ this ->_getOxcomAdminSearchData ($ sSql , 'admin_order ' );
143143 }
@@ -150,7 +150,7 @@ protected function _getOxcomAdminSearchOrders()
150150 protected function _getOxcomAdminSearchUsers ()
151151 {
152152 $ sViewName = $ this ->_sViewNameGenerator ->getViewName ("oxuser " );
153- $ sSql = "SELECT oxid, CONCAT(oxcustnr, ' / ', oxfname, ' ', oxlname, ' / ', oxusername, ' / ', oxzip) FROM $ sViewName WHERE CONCAT( oxcustnr, oxlname, oxfname, oxusername, oxzip) LIKE " . \OxidEsales \Eshop \Core \DatabaseProvider::getDb ()->quote ('% ' . $ this ->_sQueryName . '% ' );
153+ $ sSql = "SELECT oxid, CONCAT_WS( ' / ', oxcustnr, oxfname, oxlname, oxusername, oxzip) FROM $ sViewName WHERE CONCAT_WS(' / ', oxcustnr, oxlname, oxfname, oxusername, oxzip) LIKE " . \OxidEsales \Eshop \Core \DatabaseProvider::getDb ()->quote ('% ' . $ this ->_sQueryName . '% ' );
154154
155155 return $ this ->_getOxcomAdminSearchData ($ sSql , 'admin_user ' );
156156 }
0 commit comments