No Code Attached Yet
avatar brbrbr
brbrbr
13 Jul 2024

Steps to reproduce the issue

The function getParams always initializes the values as 'string', for multiselect values this should be an array with the expanded values

avatar brbrbr brbrbr - open - 13 Jul 2024
avatar joomla-cms-bot joomla-cms-bot - change - 13 Jul 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Jul 2024
avatar chmst chmst - change - 21 Aug 2024
Labels Added: Information Required
avatar chmst chmst - labeled - 21 Aug 2024
avatar chmst
chmst - comment - 21 Aug 2024

Could you give more context?

avatar brbrbr
brbrbr - comment - 21 Aug 2024

given for example a config field in an extension xml file like:

<field multiple="true" default="1,2" ....> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </field>
The installation will set the default value to be a string in:
https://github.com/joomla/joomla-cms/blob/22f8289d039c752409854e94d3fce75caf335be6/libraries/src/Installer/Installer.php#L1746C14-L1746C56
while for a multiple=true field it should be an array (explode on , from the string).

As a result, the extension will not use the desired default values.

avatar Quy Quy - change - 19 Sep 2024
Labels Removed: Information Required
avatar Quy Quy - unlabeled - 19 Sep 2024

Add a Comment

Login with GitHub to post a comment