Commit ab1f4534 by Скуратович Александр

Merge remote-tracking branch 'origin/master'

2 parents 47deb47d 87cc8e45
......@@ -5,6 +5,7 @@ namespace app\controllers;
use Yii;
use app\models\Host;
use app\models\HostSearch;
use app\models\Filter;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
......@@ -45,7 +46,7 @@ class HostFreeController extends Controller
*/
public function actionIndex()
{
$searchModel = new HostSearch(['wis_status' => 1]);
$searchModel = new HostSearch(['wis_status' => Host::STATUS_WIS_FREE, 'status' => Filter::STATUS_ON ]);
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!