[Koha-bugs] [Bug 35714] New: Clicking Print slips when no letter template selected causes error
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jan 5 16:53:55 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35714
Bug ID: 35714
Summary: Clicking Print slips when no letter template selected
causes error
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Preservation
Assignee: koha-bugs at lists.koha-community.org
Reporter: aude.charillon at ptfs-europe.com
QA Contact: testopia at bugs.koha-community.org
CC: jonathan.druart+koha at gmail.com
In the preservation module, a "Letter template for printing slip" can be
selected when creating a processing. This is not a required field; the field is
blank by default.
When viewing a train that uses a processing where no letter template have been
specified, I still see the Print slips button in the Items table actions. When
I select items, the button becomes clickable. When I click on it, I get an
error page (probably because there is no specified notice for Koha to use!)
On master, the error page starts with the lines:
Error trace
No letter_code at /kohadevbox/koha/preservation/print_slip.pl line 45.
at /usr/lib/aarch64-linux-gnu/perl-base/Carp.pm line 289
On a system recently upgraded to 23.11, I am getting a 500 error at
/cgi-bin/koha/preservation/print_slip.pl?train_item_id=1&train_item_id=2_blank
It would be better if either:
- the "Letter template for printing slip" field had the Train item slip
selected by default;
- or, the Print slip button didn't appear at all when no letter templates are
selected in the processing settings.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list