reset composeIDCache on error

This commit is contained in:
Klaus Leithoff 2013-01-23 08:34:22 +00:00
parent 371afc46ee
commit abfa132745

View File

@ -186,6 +186,8 @@
//error_log(__METHOD__.__LINE__.' '.$formData['subject'].' '.$cachedComposeID.'<->'.$this->composeID);
if (!empty($cachedComposeID) && $cachedComposeID != $this->composeID) return;
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>";
$this->compose();
return;