Open zuk3975 opened 5 years ago
In addition, when trying to save wrong query, the exception message should be user-friendly, explaining what is wrong, for example 'Invalid query syntax'. As this is really expected for user to make mistakes.
Hi @zuk3975,
I have the same issue with PS1.7.6.0beta1. PS: in the PS1.7.5.2, when we click on "Export" or "View" we don't have any exception. I’ll add this to the debug roadmap. Thanks!
One important thing to one who will fix this issue. There is also one typo mistake to fix in SqlManagerController IndexAction. Check the screenshot bellow. ( need to change RequestSql:create
to SqlManager:create
.
Hello @zuk3975 ,
In 8.0.0, I don't have the exception anymore. I can create a wrong query, I will be able to Export it to PDF with no exception. There's just nothing on the PDF:
Should we modify this bug or should we change it to a feature request ? Waiting for PM decision ^^
Thanks!
Describe the bug In Advanced parameters > Database > Sql Manager > Add new SQL query when i add query that is not working, it lets me save it. For example I am able to write random string in query like 'my random query', which doesn't do anything. Later if i want to export it, i get an unexpected error.
To Reproduce Steps to reproduce the behavior:
Screenshots
Additionnal information PrestaShop version: 1.7.6.x PHP version: N/A