You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing mass send by mail on bills : if one has a billing contact with mail address this contact will be linked to mail event generated
But after this if next bill aren't linked to a billing contact the last one found will be linked to mail event despite the fact it is not part of thirdparty
Reason found in core/actions_massactions.inc.php :
Near line 290 (in develop branch) : $contactidtosend is emptied only if $objectobj->element is "facture" AND if $listofobjectcontacts[$objectid] isn't empty
Steps to reproduce the behavior and expected behavior
Have two bill
First one having a billing contact with mail address
Second one without billing contact but having thirdparty with mail address
Mass send bill by mail to this two bills in this order
The second bill will contain a event linked to firstbill contact
Attached files
No response
The text was updated successfully, but these errors were encountered:
Bug
When doing mass send by mail on bills : if one has a billing contact with mail address this contact will be linked to mail event generated
But after this if next bill aren't linked to a billing contact the last one found will be linked to mail event despite the fact it is not part of thirdparty
Reason found in core/actions_massactions.inc.php :
Near line 290 (in develop branch) : $contactidtosend is emptied only if $objectobj->element is "facture" AND if $listofobjectcontacts[$objectid] isn't empty
But on next loop if $listofobjectcontacts[$objectid] is empty $contactidtosend is not emptied
Near line 601 (in develop branch) : $contactidtosend is used to link event generated
Workaround currently used :
Near line 316 (in develop branch) : empty $contactidtosend on default case
Dolibarr Version
at least from 16 to develop
Environment PHP
No response
Environment Database
No response
Steps to reproduce the behavior and expected behavior
Have two bill
First one having a billing contact with mail address
Second one without billing contact but having thirdparty with mail address
Mass send bill by mail to this two bills in this order
The second bill will contain a event linked to firstbill contact
Attached files
No response
The text was updated successfully, but these errors were encountered: