Bug 31137: (QA follow-up) Also fix new template page

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 7bfcb8288b)
This commit is contained in:
Nick Clemens 2022-07-15 12:10:43 +00:00 committed by Lucas Gass
parent 7f2b99cbfd
commit 9456af97be

View file

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