From ba25653a221a7c3064188925ba40b08ed1dafd50 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Jul 2005 07:04:16 +0000 Subject: [PATCH] A curious error, couldn't save a new user anymore, when publicVisible was set to no Ldap Error : Protocoll Error : (no values for attribute type) Fixed this git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@939 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 1df10314c..d1594a8a1 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -612,6 +612,12 @@ class user extends plugin /* Remove attribute if set to "nein" */ if ($this->publicVisible == "nein"){ $this->attrs['publicVisible']= array(); + if($this->new){ + unset($this->attrs['publicVisible']); + }else{ + $this->attrs['publicVisible']=array(); + } + } } -- 2.30.2