The parameter "aqbasket" is passed to GetPreparedLetter, but is always undefined for the notice ACQORDER.
Created attachment 140786 [details] [review] Bug 31587: Basket not accessible from ACQORDER notice The parameter "aqbasket" is passed to GetPreparedLetter, but is always undefined for the notice ACQORDER. Test Plan: 1) Set your ACQORDER notice content to: ***[% basket %]*** 2) Set up a vendor with an email, set contact for email so the "E-mail order" button shows on a basket for that vendor 3) E-mail the basket 4) Note the email contents are "******" 5) Apply this patch 6) Restart all the things! 7) Email the basket again 8) Note the content looks something like: ***Koha::Acquisition::Basket=HASH(0x55870acd96e0)***
Created attachment 140787 [details] [review] Bug 31587: Regression tests Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Created attachment 140788 [details] [review] Bug 31587: Basket not accessible from ACQORDER notice The parameter "aqbasket" is passed to GetPreparedLetter, but is always undefined for the notice ACQORDER. Test Plan: 1) Set your ACQORDER notice content to: ***[% basket %]*** 2) Set up a vendor with an email, set contact for email so the "E-mail order" button shows on a basket for that vendor 3) E-mail the basket 4) Note the email contents are "******" 5) Apply this patch 6) Restart all the things! 7) Email the basket again 8) Note the content looks something like: ***Koha::Acquisition::Basket=HASH(0x55870acd96e0)*** Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Created attachment 141537 [details] [review] Bug 31587: Regression tests Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 141538 [details] [review] Bug 31587: Basket not accessible from ACQORDER notice The parameter "aqbasket" is passed to GetPreparedLetter, but is always undefined for the notice ACQORDER. Test Plan: 1) Set your ACQORDER notice content to: ***[% basket %]*** 2) Set up a vendor with an email, set contact for email so the "E-mail order" button shows on a basket for that vendor 3) E-mail the basket 4) Note the email contents are "******" 5) Apply this patch 6) Restart all the things! 7) Email the basket again 8) Note the content looks something like: ***Koha::Acquisition::Basket=HASH(0x55870acd96e0)*** Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Thanks again, Kyle!
*** Bug 30791 has been marked as a duplicate of this bug. ***
Went ahead and updated the wiki page listing the available objects per notice: https://wiki.koha-community.org/wiki/Notices_with_Template_Toolkit#Variables_available_in_each_notice
Pushed to master for 22.11. Nice work everyone, thanks!
Ok, not a bad bug, but this would be SO helpful in lower versions :)
*** Bug 28824 has been marked as a duplicate of this bug. ***
Backported to 22.05.x for upcoming 22.05.08
applied to 21.11 for 21.11.15
(In reply to Arthur Suzuki from comment #13) > applied to 21.11 for 21.11.15 I will backport this to 21.05.x for 21.05.22, however I cannot find this on your 21.11 branch to use the actual commit ID rather than the bugzilla patch
Backported to 21.05.x for 21.05.22
Not released in 21.05.22
(In reply to wainuiwitikapark from comment #16) > Not released in 21.05.22 Reverted from 21.05 branch