-
-
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
BUG: Mo::deleteLine removes the "main" MoLine if consumed line is delete + GETPOST in class #28533
Comments
…-REST-API-MOS_19.0
I saw this fix (the main bug was fixed), but i think it's not a real clean fix, i found something wich is not good in my opinion: Mo.class.php Line 936 / 959 / 967 => setEventMessages(....); Others
After your fix, is it now possible to rename this PR to a QUAL PR? I work currently on the WebService API and there i become all these problems. Best regards Christian |
You're right when you say that GETPOST should not appear into CRUD files. This is an old bad practice. We are removing them step by step. Except the setEventMessage, not yet removed, I still not see why you may have trouble when calling the MoLine->delete() from a non GUI context. |
Hi @eldy , Now, if i call from non GUI MoLine->delete() for id 430:
... now its possible to make a new (copy) of the logic to the WebService function, but this is not the target i think. ... i think i make a good code with reduce some problems, but i see you don't like this. What is your target, what can i make better? Best regards |
Bug
At MoLine with Product type "Services":
Delete consumed line...
The result... the parent MoLine is deleted:
In the database is the main MoLine deleted, but the linked MoLine is existing!
Environment Version
19
Environment OS
No response
Environment Web server
No response
Environment PHP
No response
Environment Database
No response
Environment URL(s)
No response
Expected and actual behavior
No response
Steps to reproduce the behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered: