]> git.koha-community.org Git - koha.git/commit
Bug 19431: Fix error when checking out an unknown barcode
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 9 Oct 2017 22:17:45 +0000 (19:17 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 25 Oct 2017 15:14:38 +0000 (12:14 -0300)
commit1a8ca21875f86f25c72baf38e29d27af05c988b0
tree7d91794a32fff6ad968e22e6e18b46df09fa7ef7
parentd6a1f2ab242474c9e477c2f6d4df5c316a4ef448
Bug 19431: Fix error when checking out an unknown barcode

It seems this has been caused by
  commit 1544f9a5d4a8acd47c97d7c6ac55dee8e759d3ff
    Bug 18276: Remove GetBiblioFromItemNumber - circulation pages

To reproduce the problem you need switch on the two prefs
 - OnSiteCheckouts
 - OnSiteCheckoutsForce

Test plan:
Try to check an item out using an unknown barcode
With the 2 prefs set to on and without this patch, you will get the
following error in the log

  Can't call method "materials" on an undefined value at
  /home/vagrant/kohaclone/circ/circulation.pl line 387.

With this patch applied you should not get this error and a correct
behaviour for the different pref combinations.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
circ/circulation.pl