Code

Fixed problem with mail address transfer to fax plugin
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Nov 2005 15:18:03 +0000 (15:18 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Nov 2005 15:18:03 +0000 (15:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2072 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/tabs_user.inc

index 899e12d18a1acb7f42e7e44bb7fb36e4578a2ada..9569ed3969e3e613fabc64ea47d98c27aa8bab7f 100644 (file)
@@ -27,6 +27,13 @@ class usertabs extends tabs
         $this->by_object[$name]= $obj;
       }
 
+      /* Copy mail if needed */
+      if ($name == "gofaxAccount"){
+        if (isset($this->by_object['mailAccount']) && $this->by_object['mailAccount']->is_account){
+          $obj->mail= $this->by_object['mailAccount']->mail;
+        }
+      }
+
       /* Update parent in base object */
       $this->by_object['user']->parent= &$this;
     }