https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44344 Bug ID: 44344 Summary: An unknown <<token>> in a notice's subject is sent as it is, though it is removed from the body Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: babarjunaid1122@gmail.com QA Contact: testopia@bugs.koha-community.org CC: martin.renvoize@openfifth.co.uk Target Milestone: --- GetPreparedLetter removes any <<...>> left after substitution from the notice content ("remove any stragglers") but not from the title, which becomes the email subject. A typo or an unsupported field in a subject, e.g. <<borrowers.no_such_column>>, reaches the patron literally. To reproduce (main 186bbe7), the new test in t/db_dependent/Letters.t: 1. A letter with title 'Notice<<borrowers.no_such_column>> about <<status>>' and content 'Body<<no.such>> <<status>>'. 2. GetPreparedLetter with status = overdue. 3. Content: 'Body overdue'. Title: 'Notice<<borrowers.no_such_column>> about overdue'. Expected: the title is cleaned the same way as the content: 'Notice about overdue'. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.