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:
Klaus Leithoff 2014-01-21 08:26:59 +00:00
parent 8d4e50920c
commit d698f88e77
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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);