delete aclgroups attribute instead of setting it to an empty value foerste
authorMatthias Förste foerste@schlittermann.de
Tue, 13 Dec 2011 21:50:43 +0100
branchfoerste
changeset 68 e8285fb4fb63
parent 67 deadc72b7e6c
child 69 430b3ecdbbf8
delete aclgroups attribute instead of setting it to an empty value
account.pm
--- a/account.pm	Tue Dec 13 21:45:06 2011 +0100
+++ b/account.pm	Tue Dec 13 21:50:43 2011 +0100
@@ -344,7 +344,11 @@
 
             }
 
-            $e->replace( (AT_ACLGROUPS) => $ag );
+            if ($ag) {
+                $e->replace( (AT_ACLGROUPS) => $ag );
+            } else {
+                $e->delete( AT_ACLGROUPS );
+            }
             $modified++;
         }