From fe792c6bce62892e66d54bbd80ef82babfbd27e6 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 25 Nov 2015 18:18:04 +0100 Subject: [PATCH] Bug 15250: Fix Perl error on acqisition stats page MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To test: - Go to reports -> Acquisitions statistics - Populate with the following values: Acquisitions statistics Received on. Row: checked Column: checked From: 01/01/2015 To: Un-selected Cell value Count items Output: To screen into the browser: checked - Running the report will trigger the following error: Software error: Can't locate object method "field" via package "aqorders.datereceived" (perhaps you forgot to load "aqorders.datereceived"?) at /usr/share/koha/intranet/cgi-bin/reports/acquisitions_stats.pl line 293. - Apply the patch and repeat test - Verify the report now works correctly Note: Patch was created from notes and suggested fix on the bug report, written by Barton Chittenden. Signed-off-by: Brendan Gallagher Signed-off-by: Jonathan Druart (cherry picked from commit d9cef35b75770104494c2f4a01d975f367b515bf) Signed-off-by: Julian Maurice (cherry picked from commit cd693a52b8306f1bdc66804fb84fe17cadcd658f) Signed-off-by: Frédéric Demians (cherry picked from commit d52ae9be236ec1355991b060afef0d50b500164f) Signed-off-by: Liz Rea --- reports/acquisitions_stats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/acquisitions_stats.pl b/reports/acquisitions_stats.pl index 3624515910..b6d145f049 100755 --- a/reports/acquisitions_stats.pl +++ b/reports/acquisitions_stats.pl @@ -290,7 +290,7 @@ sub calculate { } elsif ( $rodsp == 3 ) { $field{$a} = "Year($a)"; } else { - field{$a} = $a; + $field{$a} = $a; } } elsif ( $_ =~ /bookseller/ ) { -- 2.39.5