Bug 17669: [QA Follow-up] Allow zero in temp-uploads-days
[koha.git] / patroncards / edit-template.pl
index c7b4708..f37757c 100755 (executable)
@@ -50,7 +50,7 @@ my $units = get_unit_values();
 
 if ($op eq 'edit') {
     $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
-    $profile_list = get_all_profiles(field_list => 'profile_id,printer_name,paper_bin', filter => "template_id=$template_id OR template_id=''");
+    $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') || '',