forked from extern/egroupware
do no close the session before sending, if we have to store the send text for infolog or other integration in the session
This commit is contained in:
parent
c197d15a28
commit
2987e9e053
@ -3175,6 +3175,11 @@ class mail_compose
|
|||||||
//error_log("Folder:".count(array($this->sessionData['folder']))."To:".count((array)$this->sessionData['to'])."CC:". count((array)$this->sessionData['cc']) ."bcc:".count((array)$this->sessionData['bcc']));
|
//error_log("Folder:".count(array($this->sessionData['folder']))."To:".count((array)$this->sessionData['to'])."CC:". count((array)$this->sessionData['cc']) ."bcc:".count((array)$this->sessionData['bcc']));
|
||||||
if(count((array)$this->sessionData['to']) > 0 || count((array)$this->sessionData['cc']) > 0 || count((array)$this->sessionData['bcc']) > 0) {
|
if(count((array)$this->sessionData['to']) > 0 || count((array)$this->sessionData['cc']) > 0 || count((array)$this->sessionData['bcc']) > 0) {
|
||||||
try {
|
try {
|
||||||
|
// do no close the session before sending, if we have to store the send text for infolog or other integration in the session
|
||||||
|
if (!($_formData['to_infolog'] == 'on' || $_formData['to_tracker'] == 'on' || $_formData['to_calendar'] == 'on' ))
|
||||||
|
{
|
||||||
|
$GLOBALS['egw']->session->commit_session();
|
||||||
|
}
|
||||||
$mail->send();
|
$mail->send();
|
||||||
}
|
}
|
||||||
catch(Exception $e) {
|
catch(Exception $e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user