[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] pbwebmaui/inc/pb.WebMAUI/lib/class.dlgMaildrop.php,
From: |
nomail |
Subject: |
[Phpgroupware-cvs] pbwebmaui/inc/pb.WebMAUI/lib/class.dlgMaildrop.php, 1.3 |
Date: |
Sun, 23 May 2004 11:48:11 -0000 |
Update of /pbwebmaui/inc/pb.WebMAUI/lib
Modified Files:
Branch:
class.dlgMaildrop.php
date: 2004/04/29 15:47:44; author: fipsfuchs; state: Exp; lines: +12 -8
Log Message:
stange behavior fixed with a workaround
=====================================================================
Index: pbwebmaui/inc/pb.WebMAUI/lib/class.dlgMaildrop.php
diff -u pbwebmaui/inc/pb.WebMAUI/lib/class.dlgMaildrop.php:1.2
pbwebmaui/inc/pb.WebMAUI/lib/class.dlgMaildrop.php:1.3
--- pbwebmaui/inc/pb.WebMAUI/lib/class.dlgMaildrop.php:1.2 Thu Apr 22
15:36:24 2004
+++ pbwebmaui/inc/pb.WebMAUI/lib/class.dlgMaildrop.php Thu Apr 29 15:47:44 2004
@@ -257,20 +257,24 @@
debug (dbgDialog, 3, "OnDialogPrepare ".__FILE__." ".__LINE__);
$maildrop = $this->_MailDrop->getAttribute("maildrop");
- if (!empty($maildrop)) {
- if (list($mail,$domain) = split("@", $maildrop, 2)) {
- $dialog->setVariable("fldName", $mail);
- $dialog->setVariable("fldDomain", $domain);
- }
- else
- $dialog->setVariable("fldName", $maildrop);
+ if (!empty($maildrop))
+ {
+ $this->_MailDrop->clearAttribute("accounts");
+ if (list($mail,$domain) = split("@", $maildrop, 2)) {
+ $dialog->setVariable("fldName", $mail);
+ $dialog->setVariable("fldDomain", $domain);
+ }
+ else
+ $dialog->setVariable("fldName", $maildrop);
}
else
+ {
$dialog->setVariable("fldDomain",
$this->_MailDrop->getAttribute("domain"));
+ }
//list addresses/Aliases
- $this->_MailDrop->clearAttribute("accounts");
+
if ($mails = $this->_MailDrop->getAttribute("accounts")) {
while (list($key,$value) = each($mails)) {
$dialog->setVariable("btnDeleteKey", "[".$value."][]");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] pbwebmaui/inc/pb.WebMAUI/lib/class.dlgMaildrop.php, 1.3,
nomail <=