Browse Source

[Administration] Déliverabilité emails : ajout colonne "Note emails"

feature/rotating_product
Guillaume Bourgeois 4 months ago
parent
commit
38f89cb8cc
2 changed files with 12 additions and 0 deletions
  1. +11
    -0
      backend/views/user-admin/email_deliverability.php
  2. +1
    -0
      domain/User/User/UserSearch.php

+ 11
- 0
backend/views/user-admin/email_deliverability.php View File

return $html; return $html;
} }
], ],
[
'attribute' => 'note_emails',
'format' => 'raw',
'value' => function($user) {
if($user->note_emails) {
return nl2br($user->note_emails);
}

return '';
}
],
[ [
'attribute' => 'producers', 'attribute' => 'producers',
'label' => 'Profils', 'label' => 'Profils',

+ 1
- 0
domain/User/User/UserSearch.php View File

. '`user`.name_legal_person, ' . '`user`.name_legal_person, '
. '`user`.type, ' . '`user`.type, '
. '`user`.problem_receiving_emails, ' . '`user`.problem_receiving_emails, '
. '`user`.note_emails, '
. '(SELECT COUNT(*) FROM `order` WHERE `user`.id = `order`.id_user) AS count_orders'); . '(SELECT COUNT(*) FROM `order` WHERE `user`.id = `order`.id_user) AS count_orders');


if($producer) { if($producer) {

Loading…
Cancel
Save