From 1e9c8d54f4c3a112132634474edbd76c881a42b5 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 23 Jun 2026 10:37:38 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20required=20attr=20from=20SFTP?= =?UTF-8?q?=20showon=20fields=20=E2=80=94=20blocks=20save=20when=20not=20S?= =?UTF-8?q?FTP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Joomla validates required fields server-side regardless of showon visibility. SFTP fields with required="true" block saving when remote_storage is set to None or S3/GDrive because the hidden fields submit empty values. Validation should be done in ProfileTable::check() conditionally instead. --- source/packages/com_mokosuitebackup/forms/profile.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/packages/com_mokosuitebackup/forms/profile.xml b/source/packages/com_mokosuitebackup/forms/profile.xml index 274154b..c6e65ff 100644 --- a/source/packages/com_mokosuitebackup/forms/profile.xml +++ b/source/packages/com_mokosuitebackup/forms/profile.xml @@ -182,7 +182,6 @@ label="COM_MOKOJOOMBACKUP_FIELD_SFTP_HOST" description="COM_MOKOJOOMBACKUP_FIELD_SFTP_HOST_DESC" maxlength="255" - required="true" showon="remote_storage:sftp" />