mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
reset composeIDCache on error
This commit is contained in:
parent
371afc46ee
commit
abfa132745
@ -186,6 +186,8 @@
|
|||||||
//error_log(__METHOD__.__LINE__.' '.$formData['subject'].' '.$cachedComposeID.'<->'.$this->composeID);
|
//error_log(__METHOD__.__LINE__.' '.$formData['subject'].' '.$cachedComposeID.'<->'.$this->composeID);
|
||||||
if (!empty($cachedComposeID) && $cachedComposeID != $this->composeID) return;
|
if (!empty($cachedComposeID) && $cachedComposeID != $this->composeID) return;
|
||||||
if(!$this->bocompose->send($formData)) {
|
if(!$this->bocompose->send($formData)) {
|
||||||
|
// reset the cached composeID, as something failed
|
||||||
|
egw_cache::setCache(egw_cache::INSTANCE,'email','composeIdCache'.trim($GLOBALS['egw_info']['user']['account_id']),null,$expiration=60);
|
||||||
// print "<script type=\"text/javascript\">alert('".lang("Error: Could not send Message.")." ".lang("Trying to recover from session data")."');</script>";
|
// print "<script type=\"text/javascript\">alert('".lang("Error: Could not send Message.")." ".lang("Trying to recover from session data")."');</script>";
|
||||||
$this->compose();
|
$this->compose();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user