Code

Ported from branches/2.5
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Oct 2006 05:59:27 +0000 (05:59 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Oct 2006 05:59:27 +0000 (05:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4900 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/addressbook/class_addressbook.inc

index ae56b8d36be962ff4f1cac0edce20beac7fea68b..94dc90f4f997784a02e65a537bfe06c3d32b0803 100644 (file)
@@ -253,14 +253,16 @@ class addressbook extends plugin
                        switch ($_GET['global']){
                                case "add":
                                        $this->dn= "new";
-                               $this->orig_cn= "";
+          $this->orig_cn= "";
 
                                /* Clean values */
                                foreach ($this->attributes as $name){
                                        $this->$name= "";
                                }
+        $this->saved_attributes= array();
                                $this->storage_base= $this->config->current["BASE"];
                                break;
+
                                case "edit":
                                        /* Clean values */
                                        foreach ($this->attributes as $name){