fix: merge sync task fields into single fieldset
Joomla's TaskPluginTrait only saves params from the fieldset matching the form name. Multiple fieldsets caused fields to not persist. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,22 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form>
|
||||
<fieldset name="sync_params" label="PLG_TASK_MOKOWAASSYNC_FIELDSET_TARGET">
|
||||
<fieldset name="sync_params">
|
||||
<field name="target_url" type="url"
|
||||
label="PLG_TASK_MOKOWAASSYNC_TARGET_URL_LABEL"
|
||||
description="PLG_TASK_MOKOWAASSYNC_TARGET_URL_DESC"
|
||||
hint="https://demo.example.com" />
|
||||
hint="https://demo.example.com" />
|
||||
<field name="api_token" type="text"
|
||||
label="PLG_TASK_MOKOWAASSYNC_API_TOKEN_LABEL"
|
||||
description="PLG_TASK_MOKOWAASSYNC_API_TOKEN_DESC"
|
||||
hint="Joomla API token for the target site" />
|
||||
hint="Joomla API token for the target site" />
|
||||
<field name="api_user" type="text"
|
||||
label="PLG_TASK_MOKOWAASSYNC_API_USER_LABEL"
|
||||
description="PLG_TASK_MOKOWAASSYNC_API_USER_DESC"
|
||||
default=""
|
||||
hint="Optional — API user on the target site" />
|
||||
</fieldset>
|
||||
|
||||
<fieldset name="sync_content_types" label="PLG_TASK_MOKOWAASSYNC_FIELDSET_CONTENT">
|
||||
<field name="sync_articles" type="radio" default="1"
|
||||
label="PLG_TASK_MOKOWAASSYNC_SYNC_ARTICLES_LABEL"
|
||||
description="PLG_TASK_MOKOWAASSYNC_SYNC_ARTICLES_DESC"
|
||||
@@ -45,9 +42,6 @@
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
|
||||
<fieldset name="sync_files" label="PLG_TASK_MOKOWAASSYNC_FIELDSET_FILES">
|
||||
<field name="sync_images" type="radio" default="1"
|
||||
label="PLG_TASK_MOKOWAASSYNC_SYNC_IMAGES_LABEL"
|
||||
description="PLG_TASK_MOKOWAASSYNC_SYNC_IMAGES_DESC"
|
||||
|
||||
Reference in New Issue
Block a user