'attribute' => 'username', | 'attribute' => 'username', | ||||
'label' => 'Nom', | 'label' => 'Nom', | ||||
'value' => function($model) { | 'value' => function($model) { | ||||
if(isset($model['name_legal_person'])) { | |||||
if(isset($model['name_legal_person']) && strlen($model['name_legal_person'])) { | |||||
return $model['name_legal_person'] ; | return $model['name_legal_person'] ; | ||||
} | } | ||||
else { | else { |