3164 - Важно - скрытие позиций английской версии

parent d9c40363
<?php
use \common\modules\content\models\CoContent;
use common\modules\content\models\CoContentLang;
use common\modules\languages\models\Languages;
use yii\helpers\Html;
use yii\helpers\Url;
use common\modules\cases\models\CaseContent;
......@@ -12,7 +13,8 @@ $models = CaseContent::find()
->where([
'c.category_id' => \common\models\Settings::getValue('case-category-id'),
'c.active' => true,
'cl.hidden' => 0
'cl.hidden' => false,
'cl.lang_id' => Languages::getCurrent()->id
])
->orderBy('position DESC')
->all();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment