]> git.koha-community.org Git - koha.git/commit
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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Fri, 26 Aug 2022 08:23:08 +0000 (10:23 +0200)
commitdfe16f174096cfed6c26d286a5dfb86d0e6e05a5
tree64b088f97492dd0052aaa2076ea1e25aafdca64a
parentca64cdc3a5fca58832693e5632a0f356734f2a94
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)
(cherry picked from commit 7f2b99cbfdda752f406f49beb4350480a658f54a)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
labels/label-edit-template.pl