From 968c6c580427b6dac9fdf0494479f706b508c880 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Nov 2005 11:09:44 +0000 Subject: [PATCH] Fixed Kolab attribute mapping. AlternateEmail addresses wasn't displayed. GOsa mailQuota caused an error if it wasn't defined git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1920 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_divSelectBox.inc | 10 +++++----- include/class_mail-methods-kolab.inc | 12 +++++++++++- plugins/gofax/faxaccount/class_gofaxAccount.inc | 4 ++-- plugins/personal/mail/class_mailAccount.inc | 2 +- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/include/class_divSelectBox.inc b/include/class_divSelectBox.inc index 303c37e1c..a853d16b2 100644 --- a/include/class_divSelectBox.inc +++ b/include/class_divSelectBox.inc @@ -31,13 +31,13 @@ class divSelectBox { function DrawList(){ $s_return = ""; - $s_return .= "
width-18)."px;\">
\n"; - $s_return .= "
\n"; - $s_return .= "
height."px;width:".($this->width)."px;\">\n"; + $s_return .= "
\n"; + $s_return .= "
\n"; + $s_return .= "
\n"; $s_return .= "attrs[$dest]= $mailObject->attrs[$source]; + $mailObject->$dest= $mailObject->attrs[$source]; + + unset ($mailObject->$dest['count']); unset ($mailObject->attrs[$source]); } } diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc index 790525849..24c94a484 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -411,8 +411,8 @@ class gofaxAccount extends plugin /* Create our divselect box */ $divSel = new divSelectBox("divSelectPredefined"); - $divSel->setHeight(300); - $divSel->setWidth(350); + $divSel->setHeight(150); + $divSel->setWidth(150); /* NEW LIST MANAGMENT * We also need to search for the departments diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index 61a8327c2..fc1cf61e3 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -637,7 +637,7 @@ class mailAccount extends plugin $method->fixAttributesOnStore($this); /* Remove Mailquota if = "" */ - if($this->attrs['gosaMailQuota']=="") { + if((isset($this->attrs['gosaMailQuota']))&&($this->attrs['gosaMailQuota']=="")) { $this->attrs['gosaMailQuota']=array(); } -- 2.30.2