[BUG]: dynamic get where clauses for joins not distributed properly #1246
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What Happened?
I have a dynamic get type getListQuery and i join table b on table a. and table c on table b.
Both return row types for the joins are "multiple. See attached screenshots for detailed info's.
Now i was expecting that the where clauses would be put into their respective functions (queries) where those join queries are run.
But for the table b it did not work. It was added to the main query of table a. But for table c it did end up in the right spot inside the query of table c.
So did i find a bug or is it not possible and shouldn't have worked for table c either?
here is the generated code:
Steps to reproduce the Bug
Create a dynamic get, add two joins. table b -> a and table c -> b. type multi row.
Add 3 where options:
a.published = 1
b.published = 1
c.published = 1
compile and review code.
c.published is in right spot. b.published is not.
Which Joomla version are you compiling in?
5.3.3
Which PHP version are you compiling in?
8.3
Which Joomla versions are you targeting?
5
Which PHP version are you targeting?
8.3
Which Web server is JCB running on?
litespeed
Which Relational Database is JCB running on?
mariadb 10.11
Which OS is JCB running on?
almalinux 9
Which JCB version are you using?
5.1.1 stable
Where in JCB did this issue occur?
Dynamic Get(admin_view)
On which browsers did you encounter the issue?
Safari
Additional Comments
No response
I see, not sure why... I will give it a look, we did massively refactor this area, to get the new Modules native compiler to work, since it also uses the dynamic get feature. It could be that we fixed it already, you can test it with the pre-test package if you like. Else I will get to it sometime next week.
Can confirm this bug is also in 5.1.2-alpha 1
Also if i remove the b.published = 1.
c.published still does what it supposed to do.
https://git.vdm.dev/joomla-pre-test/pkg-component-builder/archive/5.x.zip
This is v5.1.2-alpha2 (in pre test)
same problem still.