shish 2 лет назад
Родитель
Сommit
c49a68de48
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/ProductController.php

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -204,7 +204,7 @@ class ProductController extends BaseController
         if (!empty($status)) {
         if (!empty($status)) {
             $where['status'] = $status;
             $where['status'] = $status;
         }
         }
-        if ($book == 1) {
+        if ($requestType == 'book') {
             unset($where['status']);
             unset($where['status']);
         }
         }
         $where['delStatus'] = $delStatus;
         $where['delStatus'] = $delStatus;