Can't call method "param" on an undefined value at /srv/koha_ffzg/members/paycollect.pl line 182.
Created attachment 34451 [details] [review] Bug 13470 - pay fines with extended borrower attributes result in application error Test scenario: 1. ensure that extended patron attributes are turned on in system preferences 2. find borrower which has fine to pay, and click on pay button 3. verify application error 4. apply patch and verify that application error is gone
I've tried to create the error case on master 3.19.00.000, but I could not get the error. I had no error neither using "Pay", nor using "Pay amount" nor using "Pay selected" buttons. For now I pass the patch to the "In Discussion" status.
I should clarify that this error exists only when running under plack, which makes $template go out of scope since it's not declared with our.
(In reply to Dobrica Pavlinusic from comment #3) > I should clarify that this error exists only when running under plack, which > makes $template go out of scope since it's not declared with our. Thanks, Dobrica, for your kind explaination. I'm passing this bug back to "Needs Signoff" status. But I'm not going to test this bug, because I'd prefer not to install plack.
Created attachment 34501 [details] [review] Bug 13470 - pay fines with extended borrower attributes result in application error Test scenario: 1. ensure that extended patron attributes are turned on in system preferences 2. find borrower which has fine to pay, and click on pay button 3. verify application error 4. apply patch and verify that application error is gone Signed-off-by: Aleisha <aleishaamohia@hotmail.com>
Created attachment 34524 [details] [review] Bug 13470 - pay fines with extended borrower attributes result in application error Test scenario: 1. ensure that extended patron attributes are turned on in system preferences 2. find borrower which has fine to pay, and click on pay button 3. verify application error 4. apply patch and verify that application error is gone Signed-off-by: Aleisha <aleishaamohia@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Bug reproduced, I confirm this patch fixes the issue. No regression found. Bug introduced by bug 12542. Note that the pref value is not used by paycollect.tt (which uses circ-menu.tt, not circ-menu.inc). We could remove it, but to be consistent it is better to keep it.
Patch pushed to master. Thanks Dobrica!
Pushed to 3.18.x, will be in 3.18.2
(In reply to Jonathan Druart from comment #7) > Bug reproduced, I confirm this patch fixes the issue. > No regression found. > Bug introduced by bug 12542. skipping patch for 3.16.x - as bug 12542 is not in 3.16.x branch