Code

Fixed some errors
[gosa.git] / 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;
     }