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

(-)a/labels/label-edit-template.pl (-2 / +1 lines)
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
- 

Return to bug 31137