Create a component (com_xxx) using a table with a special character, e.g. da-events
Go to ...?option=com_xxx&view=event&layout=edit&id=1 to get the first element from the table
Get in edit.php the data from the da-events table for id=1
Exception informing about sql syntax error (without insight in the actual query causing the error)
Joomla! Version 4.2.6
PHP Version 8.0.13
Database Server mysql
Version 10.3.28-MariaDB-cll-lve
Collation latin1_swedish_ci
Conn Collation utf8mb4_general_ci
The problem is in libraries/src/Table/Table.php
On line 734 it states: ->from($this->_tbl);
This should be: ->from($this->_db->quoteName($this->_tbl));
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
@richard67 thanks. I've created the pull request in the 4.2-dev branch. Does it then also get carried over to the 4.3-dev branch? OR should I also do a pull request for that one?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-12-24 16:11:44 |
Closed_By | ⇒ | richard67 |
@Kurantje Good catch. Do you want to create a pull request with your proposed fix so you get the flowers at the end? Especially for a small change in one file it's easy to do it directly here on GitHub, see https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests for a description. It's a bit outdated with the branch names. A bug fix like this currently would have been made for the 4.2-dev branch.