Hello

When could search ticket created by a user and can't be the same as the
requester (for example in a hotline). This a a patch to add this field
in search.

David Durieux
++
diff --git a/inc/ticket.class.php b/inc/ticket.class.php
index 03ff79e..a3d0c6d 100644
--- a/inc/ticket.class.php
+++ b/inc/ticket.class.php
@@ -1783,6 +1783,12 @@ class Ticket extends CommonITILObject {
       $tab[64]['name']          = $LANG['common'][101];
       $tab[64]['massiveaction'] = false;
 
+      $tab[65]['table']         = 'glpi_users';
+      $tab[65]['field']         = 'name';
+      $tab[65]['linkfield']     = 'users_id_recipient';
+      $tab[65]['name']          = $LANG['tracking'][11];
+      $tab[65]['massiveaction'] = false;
+      
       $tab += $this->getSearchOptionsActors();
 
       $tab['sla'] = $LANG['sla'][1];
diff --git a/locales/fr_FR.php b/locales/fr_FR.php
index bcad8d3..3041227 100644
--- a/locales/fr_FR.php
+++ b/locales/fr_FR.php
@@ -2529,6 +2529,7 @@ $LANG['tracking'][7]  = "La description du ticket est obligatoire : modification
 $LANG['tracking'][8]  = "Votre ticket ne contient pas de description, veuillez corriger.";
 $LANG['tracking'][9]  = "Par défaut pour les tickets";
 $LANG['tracking'][10] = "Par défaut pour les collecteurs";
+$LANG['tracking'][11] = "Créé par";
 
 $LANG['tracking'][24] = "Document Ticket";
 
_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to