View | Details | Raw Unified | Return to bug 24001
Collapse All | Expand All

(-)a/patroncards/edit-template.pl (-1 / +1 lines)
Lines 50-55 my $units = get_unit_values(); Link Here
50
if ($op eq 'edit') {
50
if ($op eq 'edit') {
51
    $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
51
    $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
52
    $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, '' ]} } );
52
    $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, '' ]} } );
53
    push @$profile_list, {paper_bin => 'N/A', profile_id => 0, printer_name => 'No Profile'};
53
}
54
}
54
elsif ($op eq 'save') {
55
elsif ($op eq 'save') {
55
    my @params = (      profile_id      => scalar $cgi->param('profile_id') || '0',
56
    my @params = (      profile_id      => scalar $cgi->param('profile_id') || '0',
56
- 

Return to bug 24001