Bug 34261 - Deleting an EDIFACT ordering account throws an error
Summary: Deleting an EDIFACT ordering account throws an error
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low trivial
Assignee: Matt Blenkinsop
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-12 13:21 UTC by Matt Blenkinsop
Modified: 2024-07-04 20:38 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
23.11.00,23.05.02,22.11.08
Circulation function:


Attachments
Bug 34261: Add missing argument to show_account (1.23 KB, patch)
2023-07-12 13:26 UTC, Matt Blenkinsop
Details | Diff | Splinter Review
Bug 34261: Add missing argument to show_account (1.25 KB, patch)
2023-07-12 14:19 UTC, Sam Lau
Details | Diff | Splinter Review
Bug 34261: Add missing argument to show_account (1.31 KB, patch)
2023-07-12 21:08 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Blenkinsop 2023-07-12 13:21:42 UTC
Deleting an edifact ordering account throws an error - "Can't call method "decrypt_hex" on an undefined value"
Comment 1 Matt Blenkinsop 2023-07-12 13:26:50 UTC
Created attachment 153360 [details] [review]
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
Comment 2 Sam Lau 2023-07-12 14:19:06 UTC
Created attachment 153366 [details] [review]
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 <samalau@gmail.com>
Comment 3 Katrin Fischer 2023-07-12 21:08:06 UTC
Created attachment 153387 [details] [review]
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 <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Tomás Cohen Arazi (tcohen) 2023-07-14 18:24:35 UTC
Pushed to master for 23.11.

Nice work everyone, thanks!
Comment 5 Martin Renvoize (ashimema) 2023-07-18 11:52:44 UTC
Thanks for all the hard work!

Pushed to 23.05.x for the next release
Comment 6 Matt Blenkinsop 2023-07-18 15:29:18 UTC
Nice work everyone!

Pushed to oldstable for 22.11.x
Comment 7 Lucas Gass (lukeg) 2023-09-13 20:33:56 UTC
No variable named "$crypt" in 22.05.x edi_accounts.pl script, no backport.