provide contact-id on errormessage on failure of mail-merge

This commit is contained in:
Klaus Leithoff 2013-08-07 08:06:39 +00:00
parent 7b18fc9319
commit 1cb8c3f47c

View File

@ -1439,7 +1439,11 @@ abstract class bo_merge
$retString = '';
if (count($msgs['success'])>0) $retString .= count($msgs['success']).' '.(count($msgs['success'])+count($msgs['failed'])==1?lang('Message prepared for sending.'):lang('Message(s) send ok.'));//implode('<br />',$msgs['success']);
//if (strlen($retString)>0) $retString .= '<br />';
if (count($msgs['failed'])>0) $retString .= count($msgs['failed']).' '.lang('Message(s) send failed!').'=>'.implode(', ',$msgs['failed']);
foreach($msgs['failed'] as $c =>$e)
{
$errorString .= lang('contact').' '.lang('id').':'.$c.'->'.$e.'.';
}
if (count($msgs['failed'])>0) $retString .= count($msgs['failed']).' '.lang('Message(s) send failed!').'=>'.$errorString;
return $retString;
break;
case 'application/vnd.oasis.opendocument.text':