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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 18 Jul 2022 13:22:30 +0000 (10:22 -0300)
commite7d0b2ab47f1770ed11d3edc5ece8a4cf6753829
treeaad082f5cbfc4049173d6e94af4bc98f2e673cc4
parent098866cab09a6276d7a5843759c1766791aaf20f
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>
labels/label-edit-template.pl