[Bug 44090] New: Patron Notices tab and Notices management show different delivery notes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 Bug ID: 44090 Summary: Patron Notices tab and Notices management show different delivery notes 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: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: martin.renvoize@openfifth.co.uk Depends on: 33260 Target Milestone: --- Follow-up to bug 33260, reported by Pedro Amorim. The patron's 'Notices' tab and Notices management render the same notices from copied markup, which has already drifted: the patron's 'Notices' tab shows From/To on notices that Notices management doesn't. The shared markup should be factored out (e.g. into an include) so both pages show the same delivery note. Test plan: 1) Repeat steps 1) to 5) of the test plan of bug 33260 follow-up "conversion link lost" (set NoticesManagement to 'Enable', give patron 'koha' a primary email, send a welcome notice, run process_message_queue.pl, then 'Convert to print' the WELCOME notice in Notices management) 2) On the patron's 'Notices' tab, confirm the converted email notice shows 'From:' and 'To:' in its 'Delivery note' (http://localhost:8081/cgi-bin/koha/members/notices.pl?borrowernumber=51) 3) In Notices management, confirm the same notice only shows 'Converted to print notice X' Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 [Bug 33260] Show message queue on staff interface and make notices printable -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211731 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211731&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 '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. 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 <noreply@anthropic.com> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |martin.renvoize@openfifth.c |ity.org |o.uk -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211731|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 --- Comment #2 from David Nind <david@davidnind.com> --- 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 '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. 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 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This fixes the delivery release notes| |note column for notices so | |that it shows the From: and | |To: information for emails | |when sent for both Tools > | |Notices management, and | |Patrons > [selected patron] | |> Notices. | | | |Before this, the From and | |To information was only | |shown in the delivery note | |column for the patron | |notices, and not in the | |notices management tool. CC| |david@davidnind.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44090 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |lisette@bywatersolutions.co |y.org |m -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org