From: Vladimir Fomichev Date: Tue, 3 Sep 2024 09:46:55 +0000 (+0300) Subject: изменил в запросе поиска чтобы он был частичным X-Git-Tag: 1.4~13^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=89f22836b36b2cbbbf181928943570513ea06933;p=erp24_rep%2Fyii-erp24%2F.git изменил в запросе поиска чтобы он был частичным --- diff --git a/erp24/actions/grade/IndexAction.php b/erp24/actions/grade/IndexAction.php index 5565a3e4..5fb9f3b6 100755 --- a/erp24/actions/grade/IndexAction.php +++ b/erp24/actions/grade/IndexAction.php @@ -40,7 +40,7 @@ class IndexAction extends Action [['name', 'string'], [['group_id', 'store_id'], 'integer']]); if ($searchModel->load(Yii::$app->request->post()) && $searchModel->validate()) { $adminsQuery = Admin::find() - ->where(['ilike', 'name', $searchModel->name]) + ->where(['ilike', 'name', '%' . $searchModel->name . '%', false]) ->andWhere(['or', ['=', 0, $searchModel->group_id], ['group_id' => $searchModel->group_id]]) ->andWhere(['or', ['=', 0, $searchModel->store_id], ['store_id' => $searchModel->store_id]]); } else {