Browse Source

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

feature/rotating_product
Guillaume Bourgeois 3 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

@@ -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',

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

@@ -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) {

Loading…
Cancel
Save