From 903322aed37ced8458c1eb0d05c9ad84d792be0c Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 10 Nov 2006 11:28:23 +0000 Subject: [PATCH] Fixed copy & paste for fax git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5066 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofax/faxaccount/class_gofaxAccount.inc | 10 +++++----- plugins/gofax/faxaccount/paste_generic.tpl | 13 +++++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc index 5232ca844..11da486d0 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -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(); diff --git a/plugins/gofax/faxaccount/paste_generic.tpl b/plugins/gofax/faxaccount/paste_generic.tpl index 5a30bf774..769d90753 100644 --- a/plugins/gofax/faxaccount/paste_generic.tpl +++ b/plugins/gofax/faxaccount/paste_generic.tpl @@ -5,14 +5,19 @@ - + + + +
- {$must} - + {$must} +
+ {t}Alternate fax numbers will not be copied{/t} +
-- 2.30.2