[Bug 30354] New: AUTO_RENEWALS_DGST notices are not generated if patron set to receive notice via SMS and no SMS notice defined
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 Bug ID: 30354 Summary: AUTO_RENEWALS_DGST notices are not generated if patron set to receive notice via SMS and no SMS notice defined Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: andrew@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: kyle@bywatersolutions.com, nick@bywatersolutions.com To recreate: - set AutoRenewalNotices to follow messaging prefs - have a borrower with a checkout ready for auto-renewal - set that borrower to receive both email and SMS AUTO_RENEWALS_DGST - confirm your AUTO_RENEWALS_DGST does not have SMS content but does have email - run the auto_renew cron - confirm your renewal happens but the patron gets no notices The cron spits out these errors: No circulation AUTO_RENEWALS_DGST letter transported by sms at /kohadevbox/koha/C4/Letters.pm line 583. no letter of type 'AUTO_RENEWALS_DGST' found for borrowernumber 5. Please see sample_notices.sql at misc/cronjobs/automatic_renewals.pl line 305. Can't use string ("1") as a HASH ref while "strict refs" in use at /kohadevbox/koha/C4/Letters.pm line 898. When we check to see if an SMS notice exists, the warning gets passed forward as the $letter. -- 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=30354 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #1 from Lucas Gass <lucas@bywatersolutions.com> --- *** Bug 29721 has been marked as a duplicate of this bug. *** -- 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=30354 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- 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=30354 --- Comment #2 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 132180 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132180&action=edit Bug 30354: Don't assign warn as letter TO test: 1 - Check out an item marked for autop renewal to a patron and make it overdue 2 - Set system preference AutoRenewalNotices to follow messaging prefs 3 - set that borrower to receive both email and SMS AUTO_RENEWALS_DGST 4 - confirm your AUTO_RENEWALS_DGST does not have SMS content but does have email 5 - run the auto_renew cron 6 - item is renewed, but error from cron, and cron dies: No circulation AUTO_RENEWALS_DGST letter transported by sms at /kohadevbox/koha/C4/Letters.pm line 583. no letter of type 'AUTO_RENEWALS_DGST' found for borrowernumber 5. Please see sample_notices.sql at misc/cronjobs/automatic_renewals.pl line 305. Can't use string ("1") as a HASH ref while "strict refs" in use at /kohadevbox/koha/C4/Letters.pm line 898. 7 - Apply patch 8 - Make item eligible for auto renewal agian (or checkin/checkout) 9 - Run the cron 10 - There is still 2 warn, but cron does not die: No circulation AUTO_RENEWALS_DGST letter transported by sms at /kohadevbox/koha/C4/Letters.pm line 583. no letter of type 'AUTO_RENEWALS_DGST' found for borrowernumber 5. Please see sample_notices.sql at misc/cronjobs/ automatic_renewals.pl line 305. 11 - Patron receives email and item is renewed -- 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=30354 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |nick@bywatersolutions.com |ity.org | -- 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=30354 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=30354 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #132180|0 |1 is obsolete| | --- Comment #3 from David Nind <david@davidnind.com> --- Created attachment 134435 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=134435&action=edit Bug 30354: Don't assign warn as letter TO test: 1 - Check out an item marked for autop renewal to a patron and make it overdue 2 - Set system preference AutoRenewalNotices to follow messaging prefs 3 - set that borrower to receive both email and SMS AUTO_RENEWALS_DGST 4 - confirm your AUTO_RENEWALS_DGST does not have SMS content but does have email 5 - run the auto_renew cron 6 - item is renewed, but error from cron, and cron dies: No circulation AUTO_RENEWALS_DGST letter transported by sms at /kohadevbox/koha/C4/Letters.pm line 583. no letter of type 'AUTO_RENEWALS_DGST' found for borrowernumber 5. Please see sample_notices.sql at misc/cronjobs/automatic_renewals.pl line 305. Can't use string ("1") as a HASH ref while "strict refs" in use at /kohadevbox/koha/C4/Letters.pm line 898. 7 - Apply patch 8 - Make item eligible for auto renewal agian (or checkin/checkout) 9 - Run the cron 10 - There is still 2 warn, but cron does not die: No circulation AUTO_RENEWALS_DGST letter transported by sms at /kohadevbox/koha/C4/Letters.pm line 583. no letter of type 'AUTO_RENEWALS_DGST' found for borrowernumber 5. Please see sample_notices.sql at misc/cronjobs/ automatic_renewals.pl line 305. 11 - Patron receives email and item is renewed 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=30354 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com --- Comment #4 from David Nind <david@davidnind.com> --- Testing notes (using koha-testing-docker): - To set things up: . Changed the circulation rule so that for All All, Automatic renewal is set to yes . Added an email address to the patron used to check items out to (someone@example.com) (not sure that this is required for this to work) . To get the SMS column to appear under patron messaging preferences, set the SMSSendDriver system preference to Email (otherwise the error message isn't generated when the cron script is run) - To run the cron job: cd misc/cronjobs, perl automatic_renewals.pl -c -d -v - To check whether a message is "sent" or not, check under the notices section for the patron: before the patch is applied there should be no notice listed, even though the item is renewed; after the patch is applied the item is renewed and there is a pending notice -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |If an SMS notice is not release notes| |defined for | |AUTO_RENEWALS_DGST and a | |patron has selected to | |receive a digest | |notification by SMS when | |items are automatically | |renewed, it doesn't | |generate a notice (even | |though the item(s) is | |renewed). This fixes the | |issue so that an email | |message is generated. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 Joonas Kylmälä <joonas.kylmala@iki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 Joonas Kylmälä <joonas.kylmala@iki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #134435|0 |1 is obsolete| | --- Comment #5 from Joonas Kylmälä <joonas.kylmala@iki.fi> --- Created attachment 134616 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=134616&action=edit Bug 30354: Don't assign warn as letter TO test: 1 - Check out an item marked for autop renewal to a patron and make it overdue 2 - Set system preference AutoRenewalNotices to follow messaging prefs 3 - set that borrower to receive both email and SMS AUTO_RENEWALS_DGST 4 - confirm your AUTO_RENEWALS_DGST does not have SMS content but does have email 5 - run the auto_renew cron 6 - item is renewed, but error from cron, and cron dies: No circulation AUTO_RENEWALS_DGST letter transported by sms at /kohadevbox/koha/C4/Letters.pm line 583. no letter of type 'AUTO_RENEWALS_DGST' found for borrowernumber 5. Please see sample_notices.sql at misc/cronjobs/automatic_renewals.pl line 305. Can't use string ("1") as a HASH ref while "strict refs" in use at /kohadevbox/koha/C4/Letters.pm line 898. 7 - Apply patch 8 - Make item eligible for auto renewal agian (or checkin/checkout) 9 - Run the cron 10 - There is still 2 warn, but cron does not die: No circulation AUTO_RENEWALS_DGST letter transported by sms at /kohadevbox/koha/C4/Letters.pm line 583. no letter of type 'AUTO_RENEWALS_DGST' found for borrowernumber 5. Please see sample_notices.sql at misc/cronjobs/ automatic_renewals.pl line 305. 11 - Patron receives email and item is renewed Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 Joonas Kylmälä <joonas.kylmala@iki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joonas.kylmala@iki.fi QA Contact|testopia@bugs.koha-communit |joonas.kylmala@iki.fi |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to master Version(s)| |22.05.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 --- Comment #6 from Fridolin Somers <fridolin.somers@biblibre.com> --- Pushed to master for 22.05, thanks to everybody involved 🦄 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to master |Pushed to stable Version(s)|22.05.00 |22.05.00,21.11.06 released in| | --- Comment #7 from Kyle M Hall <kyle@bywatersolutions.com> --- Pushed to 21.11.x for 21.11.06 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to stable |Needs documenting CC| |victor@tuxayo.net Version(s)|22.05.00,21.11.06 |22.05.00,21.11.06,21.05.16 released in| | --- Comment #8 from Victor Grousset/tuxayo <victor@tuxayo.net> --- Backported: Pushed to 21.05.x branch for 21.05.16 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30354 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com Status|Needs documenting |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org