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:
parent
7f2b99cbfd
commit
9456af97be
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ elsif ($op eq 'save') {
|
|||
}
|
||||
else { # if we get here, this is a new layout
|
||||
$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'};
|
||||
foreach my $profile (@$profile_list) {
|
||||
if ($profile->{'profile_id'} == 0) {
|
||||
|
|
Loading…
Reference in a new issue