[Koha-bugs] [Bug 8788] New: Entry of an acquistion from an external source triggers error log entries

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 19 10:35:11 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8788

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 8788
          Assignee: koha-bugs at lists.koha-community.org
           Summary: Entry of an acquistion from an external source
                    triggers error log entries
          Severity: minor
    Classification: Unclassified
                OS: All
          Reporter: mtompset at hotmail.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: Acquisitions
           Product: Koha

[Wed Sep 19 14:38:07 2012] [error] [client 192.168.100.2] [Wed Sep 19 14:38:07
2012] basket.pl: Use of uninitialized value $total_est_gste in sprintf at
/usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 370., referer:
https://.../cgi-bin/koha/acqui/booksellers.pl
[Wed Sep 19 14:38:07 2012] [error] [client 192.168.100.2] [Wed Sep 19 14:38:07
2012] basket.pl: Use of uninitialized value $total_est_gste in sprintf at
/usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 370., referer:
https://.../cgi-bin/koha/acqui/booksellers.pl
[Wed Sep 19 14:38:07 2012] [error] [client 192.168.100.2] [Wed Sep 19 14:38:07
2012] basket.pl: Use of uninitialized value $gist_est in sprintf at
/usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 370., referer:
https://.../cgi-bin/koha/acqui/booksellers.pl
[Wed Sep 19 14:38:07 2012] [error] [client 192.168.100.2] [Wed Sep 19 14:38:07
2012] basket.pl: Use of uninitialized value $gist_est in sprintf at
/usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 370., referer:
https://.../cgi-bin/koha/acqui/booksellers.pl
[Wed Sep 19 14:38:42 2012] [error] [client 192.168.100.2] [Wed Sep 19 14:38:42
2012] basket.pl: Use of uninitialized value $total_est_gste in sprintf at
/usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 370., referer:
https://.../cgi-bin/koha/acqui/booksellers.pl
[Wed Sep 19 14:38:42 2012] [error] [client 192.168.100.2] [Wed Sep 19 14:38:42
2012] basket.pl: Use of uninitialized value $total_est_gste in sprintf at
/usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 370., referer:
https://.../cgi-bin/koha/acqui/booksellers.pl
[Wed Sep 19 14:38:42 2012] [error] [client 192.168.100.2] [Wed Sep 19 14:38:42
2012] basket.pl: Use of uninitialized value $gist_est in sprintf at
/usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 370., referer:
https://.../cgi-bin/koha/acqui/booksellers.pl
[Wed Sep 19 14:38:42 2012] [error] [client 192.168.100.2] [Wed Sep 19 14:38:42
2012] basket.pl: Use of uninitialized value $gist_est in sprintf at
/usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 370., referer:
https://.../cgi-bin/koha/acqui/booksellers.pl


Looking at the template file: total_rrp_gste, total_est_gste, gist_rate,
gist_rrp, and gist_est are only used if GST (which is $gist) is set.

The solution I took was to move these variables to a separate
$template->param() call based on "if $gist;".

I found this bug in 3.6.3, it exists in 3.8.4 too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list