From 73eca2261e28c353282065d223ad3a26c2c4d9cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Mon, 16 Apr 2018 13:31:11 +0200
Subject: [PATCH] :ambulance: fix(UserAttribute) Reset blacklist and whitlist
 to avoid problems

issue #5816
---
 include/simpleplugin/class_dialogAttributes.inc | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/include/simpleplugin/class_dialogAttributes.inc b/include/simpleplugin/class_dialogAttributes.inc
index 6e7b47a53..9188182b8 100644
--- a/include/simpleplugin/class_dialogAttributes.inc
+++ b/include/simpleplugin/class_dialogAttributes.inc
@@ -102,6 +102,13 @@ class SingleUserSelectDialog extends GenericDialog
 {
   protected $dialogClass = 'singleUserSelect';
 
+  function dialog_execute ()
+  {
+    session::set('filterBlacklist', $this->attribute->getFilterBlackList());
+    session::set('filterWhitelist', $this->attribute->getFilterWhiteList());
+    return parent::dialog_execute();
+  }
+
   function handle_finish ()
   {
     $result = $this->dialog->detectPostActions();
@@ -706,6 +713,16 @@ class DialogButtonAttribute extends ButtonAttribute
       $this->plugin->openDialog(new $this->dialogClass($this->plugin, $this));
     }
   }
+
+  function getFilterBlackList ()
+  {
+    return array();
+  }
+
+  function getFilterWhiteList ()
+  {
+    return array();
+  }
 }
 
 /*!
-- 
GitLab