]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 13 Jun 2019 11:05:38 +0000 (12:05 +0100)
commit7d7c8c12e70295f4dd15a3435235c81539c333f5
tree76c1dc07405cbc42f1749d8f785751dd5fd2b08c
parentac41566cddb737c19282bc577cf31882f168384b
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>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt