From f92913f8c9b6d6e3d3b891d0382ad45edda2a5a6 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 15 Jul 2022 12:10:43 +0000 Subject: [PATCH] Bug 31137: (QA follow-up) Also fix new template page Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 7bfcb8288b9eca65ee2b3e36501242dad3331102) (cherry picked from commit 9456af97bed946d2ca7d13fa26b31847256a9eb5) Signed-off-by: Arthur Suzuki --- labels/label-edit-template.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labels/label-edit-template.pl b/labels/label-edit-template.pl index 5f6462b18f..5765c2e47f 100755 --- a/labels/label-edit-template.pl +++ b/labels/label-edit-template.pl @@ -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) { -- 2.39.5