Bug 31137: Only display label printer profiles when editing labels
authorAdolfo Rodríguez <adolfo.rodriguez@xercode.es>
Tue, 12 Jul 2022 07:20:45 +0000 (09:20 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 23 Aug 2022 16:29:11 +0000 (10:29 -0600)
commit7f2b99cbfdda752f406f49beb4350480a658f54a
treee1fbfb738b912d833f4eaaea05170e04c72a8f68
parentd09c6ab890769b9a2638bac8120dabe6cfa1721e
Bug 31137: Only display label printer profiles when editing labels

This patch filters the printer profiles in the label edition template so you may only choose Printer Profiles created for Labels.

To test
1 Create a new Printer Profile in Patron Cards
2 Edit a Label template, pick the Printer Profile you just created.
3 Save the Label Template. You get an error 500
4 apply patch, restart services
5 Edit a Label template and check that you can't pick the Printer Profile you created in Patron Cards

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e7d0b2ab47f1770ed11d3edc5ece8a4cf6753829)
labels/label-edit-template.pl