Commit fcc3380c84561c2217cd18fde5477d232d04cf6c

Authored by andryeyev
1 parent 5b250b87

+ fix по parent термину

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
backend/views/termin/index.php
@@ -9,6 +9,7 @@ use yii\grid\GridView; @@ -9,6 +9,7 @@ use yii\grid\GridView;
9 9
10 $this->title = Yii::t('app', 'termin'); 10 $this->title = Yii::t('app', 'termin');
11 $this->params['breadcrumbs'][] = $this->title; 11 $this->params['breadcrumbs'][] = $this->title;
  12 +
12 ?> 13 ?>
13 <div class="termin-index"> 14 <div class="termin-index">
14 15
@@ -31,8 +32,9 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title; @@ -31,8 +32,9 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title;
31 [ 32 [
32 'attribute' => 'termin_parent_title', 33 'attribute' => 'termin_parent_title',
33 'value' => 'terminStructures.parent.terminLangs.termin_title', 34 'value' => 'terminStructures.parent.terminLangs.termin_title',
34 - 'content' => function($model, $key, $index, $column) {  
35 - return $model->terminStructures[0]->parent->terminLangs[0]->termin_title; 35 + 'content' => function($model, $key, $index, $column)
  36 + {
  37 + return isset ($model->terminStructures[0]->parent->terminLangs[0]->termin_title) ? $model->terminStructures[0]->parent->terminLangs[0]->termin_title : '';
36 } 38 }
37 ], 39 ],
38 'termin_name', 40 'termin_name',