Bug 14487: Noise best detected under Debian 8
commite298d5c83d8cbbad88c1bcebd4e49eac0efca10b
authorMark Tompsett <mtompset@hotmail.com>
Fri, 3 Jul 2015 22:04:04 +0000 (3 18:04 -0400)
committerLiz Rea <wizzyrea@gmail.com>
Mon, 10 Aug 2015 21:25:29 +0000 (11 09:25 +1200)
tree3fce751c70027677758696442a3a6409080d2640
parent3494e9783432f07ae855dc655807f36cbf0c32c8
Bug 14487: Noise best detected under Debian 8

The first error is caused by the fact that
$messages->{'IsPermanent'} is undefined.

The second error is caused by querying the CGI
parameter 'barcode' inside a function call. This is not required.
There is a variable $barcode set with the parameter. Changed to
use the variable.

TEST PLAN
----------
1) Test first patch.
2) Clear the log
3) Put in a barcode which is not checked out.
4) Check the log.
   -- should be two errors. One about a hash,
      the other will only be detectable under Debian 8.
5) Apply this second patch
6) Clear the log
7) Put in a barcode which is not checked out.
8) Check the log.
   -- should be empty.
9) run koha qa test tools

Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com>
Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit beef8534724900e5777fc7b6d163763712decb1f)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
circ/returns.pl