From 0f070ef43f0626df32602f19e89116751b2b0445 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Tue, 3 Dec 2019 17:51:01 +0000 Subject: [PATCH] Bug 24001: Cannot edit card template Change hardcoded default value of profile_id to 0 rather than null. Signed-off-by: Chris Nighswonger --- patroncards/edit-template.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patroncards/edit-template.pl b/patroncards/edit-template.pl index 3712a6fd82..a3235d22f6 100755 --- a/patroncards/edit-template.pl +++ b/patroncards/edit-template.pl @@ -52,7 +52,7 @@ if ($op eq 'edit') { $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, '' ]} } ); } elsif ($op eq 'save') { - my @params = ( profile_id => scalar $cgi->param('profile_id') || '', + my @params = ( profile_id => scalar $cgi->param('profile_id') || '0', template_code => scalar $cgi->param('template_code'), template_desc => scalar $cgi->param('template_desc'), page_width => scalar $cgi->param('page_width'), -- 2.11.0