From 38f41af2b52a4a2f3025b0b18a81c31adf6c732c 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 --- 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.30.2