-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong thrird-party linked by EmailCollector class on precssing customer emails #31237
Comments
I don't see error here. |
Can you see the line, Thirdparty already exists with id = 1. This ID returen after the search is wrong. My ALSOFT customer ID is actually 8. This is because of unnecessary search for thrirdparty at the end of the IF ELSE ladder. Which I deleted. |
@eldy the same configuration is working at Dolibarr 18.0.x |
@eldy problem is in the following code.
Here the value of $result is always one if Third-party found. As this is the return value from Class societe and method fetch. You don't need to fetch the third-party again here. If you really want to fetch third-party then the above code should be like this.
Or if you want to make it more beautiful then, you can return the actual value from the function findNearest like this way
|
@eldy This is issue is still present at Dolibarr 20.0.1 |
Bug
When EmailCollector class is enables and Collect_Ticket_Requests option is enabled, after processing the customer emails, if the Third-party with that email address is already present, then EmailCollector class selecting wrong thirdparty. You can see the EmailCollector class settings below.
You can also check the EmailCollector class output below.
Dolibarr Version
20.0
Environment PHP
8.1.25
Environment Database
MySQL
Steps to reproduce the behavior and expected behavior
Attached files
No response
The text was updated successfully, but these errors were encountered: