From 7223a78765ba48b877782712f810aae16d55e6e5 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 12 Jul 2023 13:22:54 +0000 Subject: [PATCH] Bug 34261: Add missing argument to show_account This patch fixes a missing $crypt in the show_account function when deleting an edifact ordering account. Test plan: 1) In system preferences search for EDIFACT and change EDIFACT to Enable 2) Navigate to Administration > EDI accounts 3) Create a dummy account 4) Try deleting the account using the delete button in the actions column on the far right 5) An error should be thrown - "Can't call method "decrypt_hex" on an undefined value" 6) Apply patch 7) Try deleting the account again 8) This time it should work and show the confirmation dialog box 9) Sign off Signed-off-by: Sam Lau Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 0992769f6ee935d7f12c127ab5df827768361585) Signed-off-by: Martin Renvoize (cherry picked from commit 86c15fca16170eacadce4ab3fd6473cee5643fdb) Signed-off-by: Matt Blenkinsop --- admin/edi_accounts.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/edi_accounts.pl b/admin/edi_accounts.pl index 5394eaf351..65e3b4e1a2 100755 --- a/admin/edi_accounts.pl +++ b/admin/edi_accounts.pl @@ -64,7 +64,7 @@ if ( $op eq 'acct_form' ) { } } elsif ( $op eq 'delete_confirm' ) { - show_account(); + show_account($crypt); $template->param( delete_confirm => 1 ); } else { -- 2.39.5