Lines 113-119
elsif ($op eq 'save') {
Link Here
|
113 |
} |
113 |
} |
114 |
else { # if we get here, this is a new layout |
114 |
else { # if we get here, this is a new layout |
115 |
$label_template = C4::Labels::Template->new(); |
115 |
$label_template = C4::Labels::Template->new(); |
116 |
$profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => { template_id => [''] } }); |
116 |
$profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => { template_id => [''], creator => 'Labels' } }); |
117 |
push @$profile_list, {paper_bin => 'N/A', profile_id => 0, printer_name => 'No Profile'}; |
117 |
push @$profile_list, {paper_bin => 'N/A', profile_id => 0, printer_name => 'No Profile'}; |
118 |
foreach my $profile (@$profile_list) { |
118 |
foreach my $profile (@$profile_list) { |
119 |
if ($profile->{'profile_id'} == 0) { |
119 |
if ($profile->{'profile_id'} == 0) { |
120 |
- |
|
|