Bug 15250: Fix Perl error on acqisition stats page

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 <brendan@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d9cef35b75)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit cd693a52b8)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit d52ae9be23)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
This commit is contained in:
Katrin Fischer 2015-11-25 18:18:04 +01:00 committed by Liz Rea
parent 84fa5ba37a
commit fe792c6bce
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ sub calculate {
} elsif ( $rodsp == 3 ) {
$field{$a} = "Year($a)";
} else {
field{$a} = $a;
$field{$a} = $a;
}
}
elsif ( $_ =~ /bookseller/ ) {