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
[9.4.0] Trying to transfer computers results in SQL Error #5478
Comments
This looks like another subselect case where AS FOO needs to be appended |
It does not seems to be a sub-query here. |
I think the problem is that a WHERE CLAUSE was put before the JOIN. ... WHERE I am pretty sure that is not legal SQL syntax. But I have no idea where this query is prepared best |
Hi, Can you test #5482 ? Regards |
Hello, I'd love to try the patch, I'd like to download the patch as a unified diff file to apply it but I can't figure out how to do that in github. Can someone explain to me how I can get a unified diff file for this patch? thanks |
Hi, You can have a patch by adding Regards |
Thank you, downloaded and patched, but it still does not work. the query now is constructed like:
but here it says: that you have to construct the delete from with joins like that, specifying the table where you want data to be deleted, because the tables are no longer unambiguos:
|
If I execute the query with delete
|
I changed the line 1214 in the file dbmysql.class.php to:
And now it works fine. I tested it also in mysql with a simple statement:
and it works as expected. |
Describe the bug
I try to transfer various computers (even one fails) from the root entity to another entity.
Page(s) URL
When you execute the transfer.
To reproduce
Steps to reproduce the behavior:
Expected behavior
the computers should have been moved to the new entity
Logs
Screenshots
If applicable, add screenshots to help explain your problem.
Your GLPI setup (you can find it in Setup > General menu, System tab)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: