https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44089 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 211682 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211682&action=edit Bug 44089: Keep the link of a converted notice in its delivery note After 'Convert to print', the delivery note of the two notices links them: 'Converted to print notice X' and 'Converted from notice Y'. The link is the failure_code of the notices, and was lost: * by gather_print_notices.pl, which used C4::Letters::_set_message_status to mark the print notice as printed. That sets the failure_code too, to an empty one. It now only changes the status, as when printing from Notices management * when the original notice was resent. A converted notice is replaced by its print notice, sending it again would send it twice, and the link would still be lost once sent. ResendMessage does not resend it, can_be_resent (bug 44092) is false for it, and the 'Resend' button is not offered for it in the Notices tab of the patron either This depends on bug 44092, which adds can_be_resent. To test: 1. Set 'NoticesManagement' to 'Enable' 2. Edit patron 'koha' (cardnumber '42'), set 'Primary email' to 'test@example.com' and save 3. On the patron's page, click 'More' > 'Send welcome notice' 4. In a KTD shell, run: perl misc/cronjobs/process_message_queue.pl (KTD has no mail server, so the notice is now 'failed') 5. Go to More > Tools > Notices management and click 'Convert to print' on the WELCOME notice 6. Confirm the email notice says 'Converted to print notice X' and the new 'print' notice says 'Converted from notice Y' 7. In a KTD shell, run: perl misc/cronjobs/gather_print_notices.pl /tmp 8. Reload Notices management. Confirm the 'print' notice is 'printed' and still says 'Converted from notice Y' 9. Click the subject of the email notice, confirm there is no 'Resend' button, and 'Converted to print notice X' is still there. Check the Notices tab of the patron too 10. Run: prove t/db_dependent/misc/cronjobs/gather_print_notices.t t/db_dependent/Letters.t 11. Run: yarn cypress run --spec t/cypress/integration/Tools/NoticesManagement_spec.ts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.