@@ -104,6 +104,17 @@ $this->addBreadcrumb($this->getTitle()); | |||
return $html; | |||
} | |||
], | |||
[ | |||
'attribute' => 'note_emails', | |||
'format' => 'raw', | |||
'value' => function($user) { | |||
if($user->note_emails) { | |||
return nl2br($user->note_emails); | |||
} | |||
return ''; | |||
} | |||
], | |||
[ | |||
'attribute' => 'producers', | |||
'label' => 'Profils', |
@@ -94,6 +94,7 @@ class UserSearch extends User | |||
. '`user`.name_legal_person, ' | |||
. '`user`.type, ' | |||
. '`user`.problem_receiving_emails, ' | |||
. '`user`.note_emails, ' | |||
. '(SELECT COUNT(*) FROM `order` WHERE `user`.id = `order`.id_user) AS count_orders'); | |||
if($producer) { |