]> git.koha-community.org Git - koha.git/commit
Bug 15250: Fix Perl error on acqisition stats page
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Wed, 25 Nov 2015 17:18:04 +0000 (18:18 +0100)
committerLiz Rea <wizzyrea@gmail.com>
Fri, 11 Dec 2015 02:41:17 +0000 (15:41 +1300)
commitfe792c6bce62892e66d54bbd80ef82babfbd27e6
treee1179a3dcadcac0858a02e24752f9bd5323b4060
parent84fa5ba37a81828079cff363cfc364979e0ad005
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 d9cef35b75770104494c2f4a01d975f367b515bf)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit cd693a52b8306f1bdc66804fb84fe17cadcd658f)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit d52ae9be236ec1355991b060afef0d50b500164f)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
reports/acquisitions_stats.pl