shish пре 6 година
родитељ
комит
80473d8c3f
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/business/controllers/InviteController.php

+ 2 - 2
app/business/controllers/InviteController.php

@@ -17,11 +17,11 @@ class InviteController extends BaseController
 	public function actionList()
 	{
 		$get = Yii::$app->request->get();
-		$status = isset($get['status']) ? $get['status'] : '';
+		$status = isset($get['status']) ? $get['status'] : -1;
 		$search = isset($get['search']) ? $get['search'] : '';
 		$where = [];
 		$where['merchantId'] = $this->merchantId;
-		if ($status != '') {
+		if ($status != -1) {
 			$where['status'] = $status;
 		}
 		if (!empty($search)) {