Commit 1658967e authored by john's avatar john

Merge branch 't_3031'

3031
parents b1604aaa 79922077
......@@ -9,6 +9,7 @@ use common\modules\documentation\models\DocList;
/* @var $this yii\web\View */
/* @var $searchModel common\modules\documentation\models\SearchCoContent */
/* @var $dataProvider yii\data\ActiveDataProvider */
$modelDocList = new DocList();
?>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
......@@ -35,7 +36,8 @@ use common\modules\documentation\models\DocList;
],
[
'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',
'value' => function($data) {
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