Explorar el Código

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

feature/rotating_product
Guillaume Bourgeois hace 5 meses
padre
commit
38f89cb8cc
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  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 Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar