shish 3 лет назад
Родитель
Сommit
1580023018
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      app-hd/controllers/OrderController.php

+ 1 - 4
app-hd/controllers/OrderController.php

@@ -1070,7 +1070,7 @@ class OrderController extends BaseController
     public function actionList()
     {
         $get = Yii::$app->request->get();
-        $search = isset($get['search']) ? $get['search'] : '';
+        $search = isset($get['searchText']) ? $get['searchText'] : '';
         $searchType = isset($get['searchType']) && is_numeric($get['searchType']) ? $get['searchType'] : '';
         $shopId = $this->shopId ?? 0;
         if (empty($shopId)) {
@@ -1090,9 +1090,6 @@ class OrderController extends BaseController
         if (isset($get['shopAdminId']) && !empty($get['shopAdminId'])) {
             $where['shopAdminId'] = $get['shopAdminId'];
         }
-        if (isset($get['searchText']) && !empty($get['searchText'])) {
-            $where['orderSn'] = strtoupper($get['searchText']);
-        }
         if (!empty($search)) {
             if (is_numeric($searchType)) {
                 if ($searchType == 0) {