Lines 46-52
my $units = get_unit_values();
Link Here
|
46 |
|
46 |
|
47 |
if ($op eq 'edit') { |
47 |
if ($op eq 'edit') { |
48 |
$label_template = C4::Labels::Template->retrieve(template_id => $template_id); |
48 |
$label_template = C4::Labels::Template->retrieve(template_id => $template_id); |
49 |
$profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => { template_id => [ $template_id, '' ] } } ); |
49 |
$profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => { template_id => [ $template_id, '' ], creator => 'Labels'} } ); |
50 |
push @$profile_list, {paper_bin => 'N/A', profile_id => 0, printer_name => 'No Profile'}; |
50 |
push @$profile_list, {paper_bin => 'N/A', profile_id => 0, printer_name => 'No Profile'}; |
51 |
foreach my $profile (@$profile_list) { |
51 |
foreach my $profile (@$profile_list) { |
52 |
if ($profile->{'profile_id'} == $label_template->get_attr('profile_id')) { |
52 |
if ($profile->{'profile_id'} == $label_template->get_attr('profile_id')) { |
53 |
- |
|
|