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

(-)a/patroncards/edit-template.pl (-3 / +2 lines)
Lines 47-56 my $units = get_unit_values(); Link Here
47
47
48
if ($op eq 'edit') {
48
if ($op eq 'edit') {
49
    $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
49
    $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
50
    $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, '' ]} } );
50
    $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, 0 ], creator => 'Patroncards'} } );
51
}
51
}
52
elsif ($op eq 'save') {
52
elsif ($op eq 'save') {
53
    my @params = (      profile_id      => scalar $cgi->param('profile_id') || '',
53
    my @params = (      profile_id      => scalar $cgi->param('profile_id') || 0,
54
                        template_code   => scalar $cgi->param('template_code'),
54
                        template_code   => scalar $cgi->param('template_code'),
55
                        template_desc   => scalar $cgi->param('template_desc'),
55
                        template_desc   => scalar $cgi->param('template_desc'),
56
                        page_width      => scalar $cgi->param('page_width'),
56
                        page_width      => scalar $cgi->param('page_width'),
57
- 

Return to bug 24001