Bug 41401 - Translating Custom slips adds same amount of options to the Print dropdown in patron's details
Summary: Translating Custom slips adds same amount of options to the Print dropdown in...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-08 13:44 UTC by Anneli Österman
Modified: 2025-12-08 13:44 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Custom slip with two languages (8.72 KB, image/png)
2025-12-08 13:44 UTC, Anneli Österman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anneli Österman 2025-12-08 13:44:39 UTC
Created attachment 190287 [details]
Custom slip with two languages

When you add a custom slip and there are several languages installed and translating notices (TranslateNotices system preference) is allowed there will be as many options as added languages in the Print dropdown menu in patron's details. All of those options print the slip in the the language that has been selected as patron's Preferred language for notices. So, if you have three languages plus default you will get four options that all look the same (name comes from the Name of the notice) and prints the same content.

How to reproduce:
1. Make sure you have at least to languages added to Koha.
2. Select in StaffInterfaceLanguages systempreferences at least two of those languages
3. Choose "Allow" to TranslateNotices systempreference
4. Go to Tools - Notices and slips - New notice - Patrons (custom slip)
5. Add code (TEST) and Name (Testing languages)
6. Add (different) content to at least two languages
7. Go to random patron's details and modify to select one of the selected languages as Preferred language for notices. Save. 
8. Select Print from the toolbar and notice that there are at least two custom slips with the same name
9. Try to print both/all of them and notice that all of them prints the content in the language that patron has preferred.

See the screenshot attached.