Bug 19048: (bug 17829 follow-up) Fix regression in self checkout
commit64a0aa541ed96b45bdc5525f35bf7dfea9c25104
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 7 Aug 2017 12:54:27 +0000 (7 09:54 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 8 Aug 2017 12:20:50 +0000 (8 09:20 -0300)
treeb0677ce0e7d6fe40e97e988d0f9cef2917cd8d40
parentfbfb6dca269acdc417e51e84e0c0b88e57f095ba
Bug 19048: (bug 17829 follow-up) Fix regression in self checkout

$patronid is not necessarily set or does not match a valid cardnumber.
These cases must be taken into account to avoid the script to crash and
raise the following error:
Can't call method "unblessed" on an undefined value at
(...)/koha/opac/sco/sco-main.pl line 117

Test plan:
Hit sco/sco-main.pl and confirm that the error is gone with this patch
applied

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
opac/sco/sco-main.pl