]> git.koha-community.org Git - koha.git/commit
Bug 19367: $biblio variable redefined in same scope in ISBDdetail
authorDavid Cook <dcook@prosentient.com.au>
Tue, 26 Sep 2017 01:45:25 +0000 (11:45 +1000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 9 Oct 2017 19:02:54 +0000 (16:02 -0300)
commit347ade5c1089813ccecbbd1bb0c91e828a914265
tree2726178198ab169ce752b9a34e9a0ef1d7c2788f
parentf59484df2246c0ee11c5d44f2dca762908864fe8
Bug 19367: $biblio variable redefined in same scope in ISBDdetail

The following warning is generated by ISBDdetail.pl:
my" variable $biblio masks earlier declaration in same scope
at ./catalogue/ISBDdetail.pl line 171.

This patch removes this unnecessary declaration, which removes the
warning.

_TEST PLAN_

After applying patch:

1) Check code compilation with "KOHA_CONF=/path/to/koha-conf.xml perl -c catalogue/ISBDdetail.pl"
2) Note the only message is "./catalogue/ISBDdetail.pl syntax OK"
2) On /cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=1,
view the source of the page and verify that the Javascript
contains a holdcount e.g. "var holdcount = 0".

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
catalogue/ISBDdetail.pl