From a0062ed9898e2efd10c9aa7ae25252548a44721a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Tue, 9 Jan 2018 16:18:24 +0100
Subject: [PATCH] :sparkles: feat(select): Allow to use mail in filter for
 selection

In all select management classes which allow to select users, add mail
 to searched attributes

issue #4771
---
 include/select/objectSelect/class_objectSelect.inc       | 2 +-
 include/select/userGroupSelect/class_userGroupSelect.inc | 2 +-
 include/select/userSelect/class_userSelect.inc           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/select/objectSelect/class_objectSelect.inc b/include/select/objectSelect/class_objectSelect.inc
index dd9761f99..9ae6e127a 100644
--- a/include/select/objectSelect/class_objectSelect.inc
+++ b/include/select/objectSelect/class_objectSelect.inc
@@ -27,6 +27,6 @@ class objectSelect extends userSelect
     'terminal', 'workstation', 'server', 'printer', 'phone',
     'simpleSecurityObject'
   );
-  protected $autoFilterAttributes = array('dn', 'cn', 'uid', 'description');
+  protected $autoFilterAttributes = array('dn', 'cn', 'uid', 'description', 'mail');
 }
 ?>
diff --git a/include/select/userGroupSelect/class_userGroupSelect.inc b/include/select/userGroupSelect/class_userGroupSelect.inc
index 4a9dfc6f1..83f33d191 100644
--- a/include/select/userGroupSelect/class_userGroupSelect.inc
+++ b/include/select/userGroupSelect/class_userGroupSelect.inc
@@ -21,7 +21,7 @@
 class userGroupSelect extends userSelect
 {
   protected $objectTypes = array('user', 'group');
-  protected $autoFilterAttributes = array('dn', 'cn', 'uid', 'description');
+  protected $autoFilterAttributes = array('dn', 'cn', 'uid', 'description', 'mail');
 
   function __construct()
   {
diff --git a/include/select/userSelect/class_userSelect.inc b/include/select/userSelect/class_userSelect.inc
index c3fef0a4d..cdf2e6557 100644
--- a/include/select/userSelect/class_userSelect.inc
+++ b/include/select/userSelect/class_userSelect.inc
@@ -21,7 +21,7 @@
 class userSelect extends simpleSelectManagement
 {
   protected $objectTypes          = array('user');
-  protected $autoFilterAttributes = array('dn', 'cn', 'uid', 'description');
+  protected $autoFilterAttributes = array('dn', 'cn', 'uid', 'description', 'mail');
 
   function parseXML ($file)
   {
-- 
GitLab