User tests: Successful: Unsuccessful:
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.
The category entry is displayed using the category id instead of the category title 0.
The category entry is displayed correctly with the category title 0.
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
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
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
I have tested this item ✅ successfully on 269d9d2
I have tested this item ✅ successfully on 269d9d2
| Status | Pending | ⇒ | Ready to Commit |
| Labels |
Added:
bug
PR-5.4-dev
|
||
RTC
RTC
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.