From ad40072267b391cc29c1d1e8e812b25c9dc354e8 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 4 Feb 2026 16:25:47 -0800 Subject: [PATCH] backups: Fix issue with Javascript in add remote location form Tests: - In remote repository add form, selecting radio options for authentication types does not throw an error. The password field is shown/hidden as expected. Signed-off-by: Sunil Mohan Adapa --- .../modules/backups/static/backups_add_remote_repository.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/backups/static/backups_add_remote_repository.js b/plinth/modules/backups/static/backups_add_remote_repository.js index 720a247e9..3377259e3 100644 --- a/plinth/modules/backups/static/backups_add_remote_repository.js +++ b/plinth/modules/backups/static/backups_add_remote_repository.js @@ -23,8 +23,8 @@ */ document.addEventListener('DOMContentLoaded', () => { - const keyAuth = document.getElementById('id_ssh_auth_type_key'); - const passwordAuth = document.getElementById('id_ssh_auth_type_password'); + const keyAuth = document.getElementById('id_ssh_auth_type_0'); + const passwordAuth = document.getElementById('id_ssh_auth_type_1'); const sshPasswordField = document.getElementById('id_ssh_password'); const encryptionType = document.getElementById('id_encryption'); const encryptionPassphraseField = document.getElementById('id_encryption_passphrase');