Code

Fixed copy & paste for fax
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Nov 2006 11:28:23 +0000 (11:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Nov 2006 11:28:23 +0000 (11:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5066 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofax/faxaccount/class_gofaxAccount.inc
plugins/gofax/faxaccount/paste_generic.tpl

index 5232ca844cf3e1bbf225a8dbc182abd4ba791583..11da486d00e139f66d3e0ae1e6b5f619f0aa97f9 100644 (file)
@@ -38,9 +38,12 @@ class gofaxAccount extends plugin
   var $out_blocklist_dialog= FALSE;
   var $current_blocklist= array();
 
+  /* Copy & paste variables */
+  var $CopyPasteVars=array("facsimileTelephoneNumber");
+
   /* attribute list for save action */
   var $attributes= array("goFaxDeliveryMode", "goFaxIsEnabled","goFaxRBlockgroups","facsimileAlternateTelephoneNumber",
-      "goFaxPrinter", "goFaxDivertNumber", "goFaxLanguage", "goFaxFormat", "mail");
+      "goFaxPrinter", "goFaxDivertNumber", "goFaxLanguage", "goFaxFormat", "mail","facsimileTelephoneNumber");
   var $objectclasses= array("goFaxAccount");
 
   var $uid= "";
@@ -734,11 +737,8 @@ class gofaxAccount extends plugin
       $this->attrs[$val]= $this->$val;
     }
 
-    /* Adapt mail settings if needed */
+    /* Do not save mail address ... it was possibly changed by mail plugin*/
     unset($this->attrs['mail']);
-    if (!$this->has_mailAccount && $this->goFaxDeliveryMode && 32){
-      $this->attrs['mail']= $this->mail;
-    }
 
     /* Write back to ldap */
     $ldap= $this->config->get_ldap_link();
index 5a30bf7743bf7894061f4116be9ce62d743f1425..769d9075348d90893a783dc64b0ab37f6685a6c3 100644 (file)
@@ -5,14 +5,19 @@
                <table summary="">
                                <tr>
                                <td>
-                                               <label for="facsimileTelephoneNumber">{t}Fax{/t}</label>{$must}
-                                       </td>
-                               <td>
+                                       <label for="facsimileTelephoneNumber">{t}Fax{/t}</label>{$must}
+                               </td>
+                               <td>
                                        <input name="facsimileTelephoneNumber" id="facsimileTelephoneNumber" 
-                                                       size=20 maxlength=65 value="{$facsimileTelephoneNumber}" 
+                                                       size=40 maxlength=65 value="{$facsimileTelephoneNumber}" 
                                                        title="{t}Fax number for GOfax to trigger on{/t}">
                                </td>
                                </tr>
+                       <tr>
+                               <td colspan=2>
+                                        {t}Alternate fax numbers will not be copied{/t}
+                               </td>
+                       </tr>
                        </table>
                </td>
        </tr>