Fix massaction

This commit is contained in:
Laurent Destailleur 2019-01-29 10:51:34 +01:00
parent f6be0f7686
commit 43c0a2232c

View File

@ -435,7 +435,7 @@ if (! $error && $massaction == 'confirm_presend')
// Insert logs into agenda // Insert logs into agenda
foreach($listofqualifiedobj as $objid2 => $objectobj2) foreach($listofqualifiedobj as $objid2 => $objectobj2)
{ {
if ((! $oneemailperrecipient) && $objid2 != $objid) continue; // We discard this pass to avoid duplicate with other pass in looparray at higher level if ((! $oneemailperrecipient) && $objid2 != $objectid) continue; // We discard this pass to avoid duplicate with other pass in looparray at higher level
dol_syslog("Try to insert email event into agenda for objid=".$objid2." => objectobj=".get_class($objectobj2)); dol_syslog("Try to insert email event into agenda for objid=".$objid2." => objectobj=".get_class($objectobj2));