Commit 79922077 authored by john's avatar john

t_3031

parent 704d651d
...@@ -9,6 +9,7 @@ use common\modules\documentation\models\DocList; ...@@ -9,6 +9,7 @@ use common\modules\documentation\models\DocList;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $searchModel common\modules\documentation\models\SearchCoContent */ /* @var $searchModel common\modules\documentation\models\SearchCoContent */
/* @var $dataProvider yii\data\ActiveDataProvider */ /* @var $dataProvider yii\data\ActiveDataProvider */
$modelDocList = new DocList();
?> ?>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?> <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
...@@ -35,7 +36,8 @@ use common\modules\documentation\models\DocList; ...@@ -35,7 +36,8 @@ use common\modules\documentation\models\DocList;
], ],
[ [
'attribute' => 'list_id', 'attribute' => 'list_id',
'filter' => ArrayHelper::map(DocList::find()->all(), 'id', 'name'), // 'filter' => ArrayHelper::map(DocList::find()->all(), 'id', 'lang.name'),
'filter' => $modelDocList->getParentList($searchModel->list, 0, 0, true),
'format' => 'text', 'format' => 'text',
'value' => function($data) { 'value' => function($data) {
if ($data->list && $data->list->lang) if ($data->list && $data->list->lang)
......
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