From fcc3380c84561c2217cd18fde5477d232d04cf6c Mon Sep 17 00:00:00 2001 From: andryeyev Date: Thu, 21 Jan 2016 16:59:17 +0200 Subject: [PATCH] + fix по parent термину --- backend/views/termin/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/views/termin/index.php b/backend/views/termin/index.php index c65c4ef..2a154a0 100644 --- a/backend/views/termin/index.php +++ b/backend/views/termin/index.php @@ -9,6 +9,7 @@ use yii\grid\GridView; $this->title = Yii::t('app', 'termin'); $this->params['breadcrumbs'][] = $this->title; + ?>
@@ -31,8 +32,9 @@ $this->params['breadcrumbs'][] = $this->title; [ 'attribute' => 'termin_parent_title', 'value' => 'terminStructures.parent.terminLangs.termin_title', - 'content' => function($model, $key, $index, $column) { - return $model->terminStructures[0]->parent->terminLangs[0]->termin_title; + 'content' => function($model, $key, $index, $column) + { + return isset ($model->terminStructures[0]->parent->terminLangs[0]->termin_title) ? $model->terminStructures[0]->parent->terminLangs[0]->termin_title : ''; } ], 'termin_name', -- libgit2 0.21.4