Fix loading module by ID on PostgreSQL#28278
Fix loading module by ID on PostgreSQL#28278HLeithner merged 1 commit intojoomla:stagingfrom SharkyKZ:patch-2
Conversation
|
The two PRs are unrelated. |
|
It's ultimately the same issue. The issue exists in staging and should be fixed there. Also #28269 doesn't work correctly on PDO as noted in the comments. Meanwhile, this works correctly on all database drivers and will work when it reaches 4.0. |
|
Though for 4.0 we could change argument type to integer as discussed in #26531. |
|
FWIW this is needed regardless of whatever external facing API changes someone wants to propose. The issue here is the database results come back in an inconsistent type so typecasting is needed to not break the function’s internal flow. How is this different than the other PR? That is aiming to change the public API of the method, this one typecasts the database results to align with the currently documented public API (so you still have to pass a string identifier in here, a non-string will fail the strict comparison). |
|
@SharkyKZ I've applied your patch and done as instructed but still can't see that bloody module. Am using PotsgreSQL 11 on PHP 7.3 with the native postgresql driver. Should I use the PDO driver instead? I'll try in a while. |
|
@SharkyKZ False alarm, used the wrong module, popular tags. Seems there are none. With Breadcrumbs it works ;-) |
|
I have tested this item ✅ successfully on f02c086 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28278. |
|
I have tested this item ✅ successfully on f02c086 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28278. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28278. |
|
I've just tested that nothing is broken for MySQLi and MySQL (PDO). All ok. |
|
Thanks |
Summary of Changes
Fixes module loading on PostgreSQL.
Testing Instructions
This needs to be tested on PostgreSQL.
Insert a module into an article.
View the article in frontend.
Expected result
Module appears.
Actual result
Module doesn't appear.
Documentation Changes Required
No.