]> git.koha-community.org Git - koha.git/commit
Bug 16750: Redirect from selectbranchprinter.pl to additem.pl causes software error
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 16 Jun 2016 11:08:59 +0000 (11:08 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 26 Jun 2019 14:45:58 +0000 (14:45 +0000)
commit1eb77d6475872805407ff7512b8ebe578fbe4181
tree4dd846eedd754faf9985c73a06ea6d27e33e013f
parent5236cdac02136a080595c0c4e692907e3f3ecedb
Bug 16750: Redirect from selectbranchprinter.pl to additem.pl causes software error

How to reproduce:
1) Edit and save an item in the items editor
2) You should be redirected back to the items editor, note that the
biblionumber is passed in the url
3) Choose "set library" from the upper right hand pulldown on the page
4) Choose a different library, click submit
5) You should get the error message:
Software error:

Can't call method "fields" on an undefined value at
/home/vagrant/kohaclone/cataloguing/additem.pl line 736.

Test Plan:
1) Apply this patch
2) Follow plan above
3) No software error should occur at step 5

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 7d7c8c12e70295f4dd15a3435235c81539c333f5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit a539d9c4b6e88d290136b5218ea0ac3c982a39f5)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt