bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar janschoenherr
janschoenherr
18 May 2026
  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

This Pull Request fixes an issue where select options with the text value 0 were treated as empty.

The select option helper previously used a truthy check on trim($text), which means the string 0 was considered empty by PHP. As a result, when an option was created with text 0, Joomla used the option value as the displayed text instead of preserving the provided text.

The check now explicitly tests for an empty string, so 0 remains a valid option text.

Testing Instructions

  1. In the administrator backend, create a category with the title '0'.
  2. Go to Content -> Articles.
  3. Open the category filter dropdown labeled '- Select Category -'.
  4. Check the entry for the category created in step 1.

Actual result BEFORE applying this Pull Request

The category entry is displayed using the category id instead of the category title 0.

Expected result AFTER applying this Pull Request

The category entry is displayed correctly with the category title 0.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar janschoenherr janschoenherr - open - 18 May 2026
avatar janschoenherr janschoenherr - change - 18 May 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2026
Category Libraries
avatar michaelmaass michaelmaass - test_item - 18 May 2026 - Tested successfully
avatar michaelmaass
michaelmaass - comment - 18 May 2026

I have tested this item ✅ successfully on 269d9d2

Before applying the test, the filter dropdown showed the category ID. After applying the patch it was correctly listed as "0". Tested in Joomla! 6.1.0 with the "Joomla! Patch Tester" 5.0.1


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

avatar michaelmaass
michaelmaass - comment - 18 May 2026

I have tested this item ✅ successfully on 269d9d2

Before applying the test, the filter dropdown showed the category ID. After applying the patch it was correctly listed as "0". Tested in Joomla! 6.1.0 with the "Joomla! Patch Tester" 5.0.1


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

avatar ChristineWk ChristineWk - test_item - 19 May 2026 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 19 May 2026

I have tested this item ✅ successfully on 269d9d2


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

avatar ChristineWk
ChristineWk - comment - 19 May 2026

I have tested this item ✅ successfully on 269d9d2


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

avatar richard67 richard67 - change - 19 May 2026
Status Pending Ready to Commit
Labels Added: bug PR-5.4-dev
avatar richard67
richard67 - comment - 19 May 2026

RTC


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

avatar richard67
richard67 - comment - 19 May 2026

RTC


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

Add a Comment

Login with GitHub to post a comment