Bug 18535 - Clicking 'edit printer profile' in label creator causes software error
[koha.git] / labels / label-edit-profile.pl
index 13c9aaf..e5ed353 100755 (executable)
@@ -50,7 +50,7 @@ my $units = get_unit_values();
 
 if ($op eq 'edit') {
     $profile = C4::Labels::Profile->retrieve(profile_id => $profile_id);
-    $template_list = get_all_templates( fields => [ qw( template_id template_code profile_id) ] );
+    $template_list = get_all_templates( { fields => [ qw( template_id template_code profile_id) ] } );
 }
 elsif ($op eq 'save') {
     my @params = (