]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 17 Jun 2019 07:57:28 +0000 (09:57 +0200)
commita539d9c4b6e88d290136b5218ea0ac3c982a39f5
treed64ca3b093719b5b37f3223e0d23024c3900e5f1
parentc41379c0b8a1aab0802c3acde94bd071b57a296d
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>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt