RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
20 Dec 2025

Summary of Changes

Make sure the image is displayed AND ensure there are no empty list elements

Testing Instructions

Create a mod_articles module and set it to display just the article image - ensure one of the articles that would be displayed does NOT have an image

Actual result BEFORE applying this Pull Request

module is empty except for empty list elements

Expected result AFTER applying this Pull Request

image is displayed for all articles that have an image AND there are no empty list elements

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar brianteeman brianteeman - open - 20 Dec 2025
avatar brianteeman brianteeman - change - 20 Dec 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Dec 2025
Category Modules Front End
avatar exlemor exlemor - test_item - 21 Dec 2025 - Tested successfully
avatar exlemor
exlemor - comment - 21 Dec 2025

I have tested this item ✅ successfully on 985771f

I have successfully tested this PR. Nice catch @brianteeman and thank you for the fix.

Happy Holidays!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46598.

avatar brianteeman
brianteeman - comment - 21 Dec 2025

The more I think about it the more I think that the if statement should just be removed completely. It doesnt serve any purpose (that i can see) and will just result in an empty list item which is invalid thml

avatar ceford
ceford - comment - 4 Jan 2026

Tested, but: none of the articles has an image so I end up with a list of five empty list items.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46598.

avatar brianteeman
brianteeman - comment - 4 Jan 2026

yes thats why I commented

The more I think about it the more I think that the if statement should just be removed completely. It doesnt serve any purpose (that i can see) and will just result in an empty list item which is invalid thml

avatar brianteeman
brianteeman - comment - 4 Jan 2026

or the if statement should be moved before the containing li element

avatar brianteeman
brianteeman - comment - 4 Jan 2026

@drmenzelit I'd appreciate your thoughts on moving the if statement

avatar drmenzelit
drmenzelit - comment - 4 Jan 2026

If we remove the if statement completely only the plugin events ($item->event->afterDisplayTitle, etc.) will be displayed, if all other elements are set to hide.
Movin the if statement before the li element can end in an empty ul. Probably the better solution.

avatar brianteeman brianteeman - change - 5 Jan 2026
Labels Added: PR-5.4-dev
avatar brianteeman brianteeman - change - 5 Jan 2026
The description was changed
avatar brianteeman brianteeman - edited - 5 Jan 2026
avatar brianteeman
brianteeman - comment - 5 Jan 2026

I have updated the PR and description/test instructions so that the if statement now wraps the li element instead of being inside the li. This additionally ensure that we have no empty list elements which would be both invalid html and an accessibility failure

avatar ceford
ceford - comment - 6 Jan 2026

I have tested this and found a problem: If there is no image there is an empty list item. This part: || $params->get('img_intro_full') checks whether to use the intro or full image but it does not check that either image actually exists.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46598.

avatar Razzo1987 Razzo1987 - test_item - 23 Jan 2026 - Not tested
avatar Razzo1987
Razzo1987 - comment - 23 Jan 2026

I have not tested this item.

I confirm that if an article (the second in my test) have not the image there is an empty list item:


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46598.
avatar richard67
richard67 - comment - 23 Jan 2026

I have not tested this item.I confirm that if an article (the second in my test) have not the image there is an empty list item:

@Razzo1987 Really not tested? Or just forgotten to select the right test result before submitting?

avatar brianteeman brianteeman - change - 24 Jan 2026
Labels Added: bug
avatar brianteeman
brianteeman - comment - 24 Jan 2026

I have updated the pr so that there is no empty list element if there is no image

avatar Razzo1987
Razzo1987 - comment - 24 Jan 2026

phpcs: Expected at least 1 space before "||" (latest one) 😭
Thanks @brianteeman, I'll write that in the chat we used for testing yesterday and maybe we can get two in quickly

avatar Razzo1987 Razzo1987 - test_item - 24 Jan 2026 - Tested successfully
avatar Razzo1987
Razzo1987 - comment - 24 Jan 2026

I have tested this item ✅ successfully on 62b6cfe

Test 1

3 articles, only 2 images

image image

Test 2

3 articles, 3 images

image image

Test 3

Alt text

image


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46598.
avatar exlemor
exlemor - comment - 24 Jan 2026

@brianteeman, I am retesting this PR and I must be doing something wrong this time but I am getting the images to come up in the BEFORE condition (except the one that of course doesn't have an image in the article):

ScreenFloat Shot of Safari on 2026-01-24 at 23-16-07

(I reduced browser view so that I can get it to fit all in the screenshot)

Environment:
Using Joomla 5.4 Nightly Build from this morning - clean install, Blog Sample Data, French Added, Multilingual Sample Data, Joomla Patch Tester 4.4 and Regular Labs Clean Cache and that's it.

avatar brianteeman
brianteeman - comment - 24 Jan 2026

@exlemor "set it to display just the article image"

avatar exlemor exlemor - test_item - 25 Jan 2026 - Tested successfully
avatar exlemor
exlemor - comment - 25 Jan 2026

I have tested this item ✅ successfully on 62b6cfe

I was able to test it again and get it to work! (Thanks @brianteeman - it was a caching issue)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46598.

avatar alikon alikon - change - 25 Jan 2026
Status Pending Ready to Commit
avatar alikon
alikon - comment - 25 Jan 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46598.

avatar richard67 richard67 - change - 25 Jan 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-01-25 12:11:44
Closed_By richard67
Labels Added: RTC
avatar richard67 richard67 - close - 25 Jan 2026
avatar richard67 richard67 - merge - 25 Jan 2026
avatar richard67
richard67 - comment - 25 Jan 2026

Thanks @brianteeman for this bug fix, and @exlemor and @Razzo1987 for testing and @drmenzelit for advice.

avatar brianteeman
brianteeman - comment - 25 Jan 2026

thanks

Add a Comment

Login with GitHub to post a comment