I am trying to update a very nice Joomla 3 plugin to Joomla 4 because the plugin creator did not update it himself. Upgrade is almost ok except that if no default value is set for one of the parameters, the plugin crashes. It does work ok if I define a default value prior to activating the plugin...
Below (excerpt) is the parameter which requires a default value in the xml file:
<fieldset name="basic">
<field name="mailto_admins" type="usergrouplist" default="0"
multiple="true"
label="PLG_MAILTO_ADMINS_LABEL"
description="PLG_MAILTO_ADMINS_DESC">
</field>
.....
How can I set a default value to the mailto_admins field name so that it sets it to superusers (usergroup id 8 if I'm right)? Setting default=8 in the field definition does not seem to do it.
Thank you!