From 55163583831981216c7597f6ea8c230aa8340835 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Fri, 14 Jun 2024 16:09:54 +0000 Subject: [PATCH] Bug 36767: Default port should be set to 22 This patch sets a default value for the EDI account form for the upload and download ports Test plan: 1) Try to create an EDI account without setting the upload or download ports 2) The form will crash 3) Apply patch and restart_all 4) Try again, the form should submit 5) In your new EDI account, you should see the value of 22 for both ports Signed-off-by: Emily Lamancusa --- admin/edi_accounts.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/edi_accounts.pl b/admin/edi_accounts.pl index d7bb9b72e5..c83c25a27c 100755 --- a/admin/edi_accounts.pl +++ b/admin/edi_accounts.pl @@ -79,8 +79,8 @@ else { host => scalar $input->param('host'), username => scalar $input->param('username'), password => $password, - upload_port => scalar $input->param('upload_port'), - download_port => scalar $input->param('download_port'), + upload_port => scalar $input->param('upload_port') || 22, + download_port => scalar $input->param('download_port') || 22, vendor_id => scalar $input->param('vendor_id'), upload_directory => scalar $input->param('upload_directory'), download_directory => scalar $input->param('download_directory'), -- 2.34.1