From a6923b3263a9cf31b4b39562a5b896d6fdd39f89 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Wed, 7 Aug 2024 14:19:10 +0300 Subject: [PATCH] =?utf8?q?[ERP-135]=20=D0=A1=D0=BF=D1=80=D1=8F=D1=82=D0=B0?= =?utf8?q?=D1=82=D1=8C=20=D0=BC=D0=B0=D0=B3=D0=B0=D0=B7=D0=B8=D0=BD=D1=8B?= =?utf8?q?=20=D1=81=20visible=3D0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/motivation/IndexAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/actions/motivation/IndexAction.php b/erp24/actions/motivation/IndexAction.php index f745fa06..f738eac6 100644 --- a/erp24/actions/motivation/IndexAction.php +++ b/erp24/actions/motivation/IndexAction.php @@ -54,7 +54,7 @@ class IndexAction extends Action $motivations = Motivation::find()->all(); $possibleStoreIds = ArrayHelper::getColumn($motivations, 'store_id'); - $stores = ArrayHelper::map(CityStore::find()->all(), 'id', 'name'); + $stores = ArrayHelper::map(CityStore::find()->where(['visible' => 1])->all(), 'id', 'name'); $stores = array_filter($stores, function ($k, $v) use ($possibleStoreIds) { return in_array($v, $possibleStoreIds); }, ARRAY_FILTER_USE_BOTH); -- 2.39.5