From 29aa0eab324ee2de308fcdad4060b3289e29b057 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 9 Jan 2024 16:47:56 +0100 Subject: [PATCH] Bug 35714: Prevent items not linked with processing with a letter code a to be printed Items linked with a processing which does not have a letter code are not supposed to be printed. Currently the code is allowing to "print slip" for items when using the link on top of the table. It results in an error "No letter_code at /kohadevbox/koha/preservation/print_slip.pl line 45." Test plan: Create a processing without a letter code Add 2 items to the waiting list then add them to a train Go to the "show train" view => notice that you cannot print slip for those items Create another processing with a letter code Edit one of the item and set it the new processing => A slip for this item can be printed Edit the other item and the train to make them use the new processing => A slip for those items can be printed Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer (cherry picked from commit 335b5b7ad52a7f56bac617e79358d4863a0e0c99) Signed-off-by: Fridolin Somers --- .../components/Preservation/TrainsShow.vue | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue index f3d2ca2ef0..5c7bc5c9dd 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue @@ -183,10 +183,18 @@ v-bind:key="counter" >