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

--- Comment #2 from David Nind <[email protected]> ---
Created attachment 211886
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211886&action=edit
Bug 44090: Share the delivery note of the Notices tab and Notices management

The Notices tab of a patron (members/notices.tt) and Notices management
(tools/notices.tt) show the delivery note of the notices from copied
markup, which had already drifted: the Notices tab shows the From, To
and CC addresses of the notices that are not pending, Notices management
only the ones of the notices that were sent. A notice that failed or that
was converted to a print notice showed them in one, and not in the other.

Move the markup to an include, notice-delivery-note.inc, used by both. It
uses the rule of the Notices tab, and the borrowernumber of the notice,
so that it does not depend on the patron of the page.

To test:
1. Set 'NoticesManagement' to 'Enable'
2. Edit patron 'koha' (cardnumber '42'), set 'Primary email' to
   '[email protected]' 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. On the 'Notices' tab of the patron, the converted email notice shows
   'Converted to print notice X', and 'From:' and 'To:'
   (members/notices.pl?borrowernumber=51)
7. Without the patch, Notices management only shows 'Converted to print
   notice X' for the same notice. With the patch, it shows the same
   delivery note as the Notices tab, for this and the failed notices
8. Run: yarn cypress run --spec
t/cypress/integration/Tools/NoticesManagement_spec.ts

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: David Nind <[email protected]>

-- 
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