Lines 49-58
my $units = get_unit_values();
Link Here
|
49 |
|
49 |
|
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, 0 ], creator => 'Patroncards'} } ); |
53 |
} |
53 |
} |
54 |
elsif ($op eq 'save') { |
54 |
elsif ($op eq 'save') { |
55 |
my @params = ( profile_id => scalar $cgi->param('profile_id') || '', |
55 |
my @params = ( profile_id => scalar $cgi->param('profile_id') || 0, |
56 |
template_code => scalar $cgi->param('template_code'), |
56 |
template_code => scalar $cgi->param('template_code'), |
57 |
template_desc => scalar $cgi->param('template_desc'), |
57 |
template_desc => scalar $cgi->param('template_desc'), |
58 |
page_width => scalar $cgi->param('page_width'), |
58 |
page_width => scalar $cgi->param('page_width'), |
59 |
- |
|
|