From 4f4991e828ed372aa17cf19405d9109491e308d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Wed, 18 Apr 2018 13:53:51 +0200
Subject: [PATCH] :ambulance: fix(simpleplugin) Fix PHP error in
 deserializeValue

issue #5811
---
 include/simpleplugin/class_Attribute.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/simpleplugin/class_Attribute.inc b/include/simpleplugin/class_Attribute.inc
index d4a30e506..83f063dac 100644
--- a/include/simpleplugin/class_Attribute.inc
+++ b/include/simpleplugin/class_Attribute.inc
@@ -633,14 +633,14 @@ class Attribute
 
   /*! \brief Apply value from RPC requests
    *
-   *  \param array $values the values array
+   *  \param mixed $value the value
    */
   function deserializeValue($value)
   {
     if ($this->disabled) {
       return sprintf(_('Attribute %s is disabled, its value could not be set'), $this->getLdapName());
     }
-    $this->setValue($values[$this->getLdapName()]);
+    $this->setValue($value);
   }
 
   /*! \brief Add ACL information around display
-- 
GitLab