Bug 39800: Error 500 when trying to delete patron card template

Test plan:

1. Go to Tools > Patron card creator
2. Click Manage > Card templates
3. Click Delete next to the HB-PC0001 template
--> Error 500
4. Go back to Tools > Patron card creator
5. Click Manage > Printer profiles
6. Click Delete next to the '16' printer profile
--> Error 500
7. Apply the patch
8. Repeat step 1, 2, 3
--> Card template is deleted
9. Repeat step 4, 5, 6
--> Printer profilesis deleted

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 0bfad63507)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Hammat Wele 2025-05-14 14:43:54 +00:00 committed by Fridolin Somers
parent 0973bf2537
commit 5da9ec9b27
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ use C4::Creators qw(
);
use C4::Labels;
use Koha::List::Patron qw( GetPatronLists );
use C4::Patroncards;
my $cgi = CGI->new;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(