Code

A curious error, couldn't save a new user anymore, when publicVisible was set to no
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Jul 2005 07:04:16 +0000 (07:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Jul 2005 07:04:16 +0000 (07:04 +0000)
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

index 1df10314ce0c58cc2bcc127c9b44f9d9f739c423..d1594a8a173373d97bb013c8b78bd36d0596d81a 100644 (file)
@@ -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();
+        }
+
       }
 
     }