https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42501

--- Comment #2 from Slava Shishkin <[email protected]> ---
Created attachment 211480
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211480&action=edit
Bug 42501: Use partner language for ILL request emails

Use the partner's notice language instead of the requesting patron's.
Show editable drafts after partner selection and preserve edits when
switching partners. Keep one draft per language and the standard fallback.

Manual test plan:
1. Enable ILLModule and TranslateNotices. Make two notice languages available.
2. Configure ILLPartnerCode and create two partners in that category with
   test email addresses and different preferred languages for notices.
3. Give ILL_PARTNER_REQ email templates distinct subjects and bodies for
   both languages and for Default.
4. Create a Standard ILL request for a patron whose notice language differs
   from one of the partners.
5. Before applying the patch, open Place request with partners. The draft
   uses the requesting patron's language and does not change with partners.
6. Apply the patch and reload the Perl code and browser assets.
7. Reopen the form: no draft is displayed until a partner is selected.
   Select each partner and check that its language's draft appears.
8. Edit a draft, switch to the other language and back, and check that
   the edits remain.
9. Select both partners: both language drafts should be editable. Using a
   local mail catcher, send and inspect each queued email's recipient,
   subject and content, including manual edits.
10. Check a partner without a language, and one whose language has no
    translated template: the existing Default fallback should be used.

Assisted-by: Codex (OpenAI)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to