No Code Attached Yet
avatar neo314
neo314
5 Jun 2025

Steps to reproduce the issue

Create a limitbox xml form field. Add append="35,40,45,55,60,65,70,75,80,85,90,95" to the options

Expected result

Those numbers are appended to the available options.

Actual result

Instead they are appended with the letter 'J" in front of the number on the text of the dropdown. The value appears correct.

System information (as much as possible)

Joomla 5.3.1

Additional comments

This appears to come from libraries/src/Form/Field/LimitboxField.php line 95. As I write this, I realize that this is for number language strings.

if (!empty($limits)) {
foreach ($limits as $value) {
$options[] = (object) [
'value' => $value,
'text' => ($value != 0) ? Text::('J' . $value) : Text::('JALL'),
];
}

            static::$options[$hash] = array_merge(static::$options[$hash], $options);
        }

Maybe either add that to the documentation, which just says to provide a comma separated string, or better yet add an optional attribute like:

append_translate true/false with a default value. I have to make a dozen extra language strings that seem unnecessary for most, but not all purposes.

avatar neo314 neo314 - open - 5 Jun 2025
avatar neo314 neo314 - change - 5 Jun 2025
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jun 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Jun 2025
avatar richard67 richard67 - change - 12 Jun 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-06-12 10:30:16
Closed_By richard67
avatar richard67 richard67 - close - 12 Jun 2025
avatar richard67
richard67 - comment - 12 Jun 2025

Closing as having a pull request. Please test #45598 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment