Description
David Nind
2022-06-07 23:26:17 UTC
> Template process failed: undef error - The method Koha::Recall->item_level_recall is not covered by tests! See Bug 30907 Working on Error 3. Created attachment 135884 [details] [review] Bug 30924: Fix transferstoreceive.pl explosion on recalls Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Created attachment 135902 [details] [review] Bug 30924: Add missing branchtransfers.reason value for recall cancellation Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Created attachment 135903 [details] [review] Bug 30924: DBIC update Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> David, you mention some workflow issues, besides explosions. I dealt with explosions on the patches, please file specific bugs for the workflow issues you might encounter, and make sure Aleisha notices them, perhaps assign them to her. Created attachment 135947 [details] [review] Bug 30924: Fix transferstoreceive.pl explosion on recalls Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: David Nind <david@davidnind.com> Created attachment 135948 [details] [review] Bug 30924: Add missing branchtransfers.reason value for recall cancellation Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: David Nind <david@davidnind.com> Created attachment 135949 [details] [review] Bug 30924: DBIC update Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: David Nind <david@davidnind.com> Testing notes (sing koha-testing-docker): 1. Enable recalls: set UseRecalls system preference to 'Use'. 2. Setup rcalls circulation and fines rules: . Recalls allowed (total) = 5 . Recalls per record (count) = 2 . On shelf recalls allowed = 'If any unavailable' . Recall due date interval (day) = 3 . Recall overdue fine amount = 5 . Recall pickup period (day) = 2 3. Checkout an item to a patron: - Patron used: Mary Burton (Midway) - Record used: Programming Perl (biblionumber = 262, one item = 39999000011418, home library = Centerville) 4. Change username/password for a patron, login to the OPAC, and place a recall for the item in step 4. - Patron used: Henry Acevedo (Midway) 5. Check in item for recall with library set to Centerville - confirm recall and transfer. 6. Change library to Midway. 7. Go to Circulation > Transfers > Transfers to receive - error generated: Template process failed: undef error - The method Koha::Recall->borrowernumber is not covered by tests! Trace begun at /kohadevbox/koha/Koha/Object.pm line 875 Koha::Object::AUTOLOAD('Koha::Recall=HASH(0x55da4737e158)') called at /kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt line 93 eval {...} at /kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt line 93 eval {...} at /kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt line 108 eval {...} at /kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt line 112 .. 7. Apply patch, updatedatabase, dbic, flush_memcached, restart_all. 8. Refresh transfers to receive page - it should now display as expected without errors. (In reply to Tomás Cohen Arazi from comment #7) > David, you mention some workflow issues, besides explosions. > > I dealt with explosions on the patches, please file specific bugs for the > workflow issues you might encounter, and make sure Aleisha notices them, > perhaps assign them to her. Thanks Tomás! I have created bug 30944 for the workflow issues - where the cancel action buttons don't appear to work. David Created attachment 135994 [details] [review] Bug 30924: Fix transferstoreceive.pl explosion on recalls Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Created attachment 135995 [details] [review] Bug 30924: Add missing branchtransfers.reason value for recall cancellation Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Created attachment 135996 [details] [review] Bug 30924: DBIC update Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Code all reads well, fix works and QA scripts are happy. Passing QA PS: Thanks for the test plan David, I was struggling to get it set up on my environment, your plan was very helpful. Pushed to master for 22.11. Nice work everyone, thanks! Backported to 22.05.x for 22.05.03 |