X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=patroncards%2Fedit-template.pl;h=f37757c540694dcab1b22a79533cea4d861b44af;hb=05e25dbc188d9d6340d03750a47cb1cce130715f;hp=c7b47086e5b380c1a90ef19898516137179cf832;hpb=f3e4b5bbb6b02d7bb6e89d84c0379666eb1e704f;p=koha.git diff --git a/patroncards/edit-template.pl b/patroncards/edit-template.pl index c7b47086e5..f37757c540 100755 --- a/patroncards/edit-template.pl +++ b/patroncards/edit-template.pl @@ -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') || '',