mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fix messages from draft and templates not opening in compose mode; fix typo that prevented the correct change of profile in getComposeFrom
This commit is contained in:
parent
8d4e50920c
commit
d698f88e77
@ -1293,7 +1293,7 @@ class mail_compose
|
||||
$icServerID = $hA['profileID'];
|
||||
if ($icServerID != $this->mail_bo->profileID)
|
||||
{
|
||||
$this->changeProfile($_content['serverID']);
|
||||
$this->changeProfile($icServerID);
|
||||
$composeProfile = $this->mail_bo->profileID;
|
||||
}
|
||||
$icServer = $this->mail_bo->icServer;
|
||||
|
@ -1767,6 +1767,10 @@ unset($query['actions']);
|
||||
$uid = $hA['msgUID'];
|
||||
$mailbox = $hA['folder'];
|
||||
//error_log(__METHOD__.__LINE__.array2string($hA));
|
||||
if ($this->mail_bo->isDraftFolder($mailbox) || $this->mail_bo->isTemplateFolder($mailbox))
|
||||
{
|
||||
egw::redirect_link('/index.php',array('menuaction'=>'mail.mail_compose.compose','id'=>$rowID,'from'=>'composefromdraft'));
|
||||
}
|
||||
$this->mail_bo->reopen($mailbox);
|
||||
// retrieve the flags of the message, before touching it.
|
||||
$headers = $this->mail_bo->getMessageHeader($uid, $partID);
|
||||
|
Loading…
Reference in New Issue
Block a user