Main Koha release repository https://koha-community.org
Find a file
Marc Véron 1db56c834b Bug 11773: fix crash in sco-main.pl if no active currency is set
If no currency is defined as active and a patron with debts tries to
check out in welf checkout moduel, sco-main.pl crashes with:

Software error:
Can't use an undefined value as a HASH reference at /usr/share/kohaclone/opac/sco/sco-main.pl line 190.

This patch tests for active currency and simply does not display a
currency symbol if appropriate.

Test plan:

1) Make sure you have a patron with debts and no currency defined as
   active.  (Home › Administration › Currencies & Exchange rates
   › Currencies )
2) Go to Self checkout module and try to checkout an item to this patron
   Result: Crash with error message "Can't use an undefined value as a
   HASH..."
3) Apply patch
4) Reload and try to checkout again
   Expected result: Message "You owe the library..." without currency
   symbol
5) Define a currency as active and try to checkout again
   Expected result: Message "You owe..." with currency symbol

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-02-18 21:03:30 +00:00
acqui
admin Bug 11666: remove SQL as an option for MARC framework exports and imports 2014-02-05 19:48:27 +00:00
authorities Bug 11652: ensure that merging authority records corrects biblios 2014-02-13 03:03:21 +00:00
basket Bug 10605: fix encoding issue on basket email (INTRANET) 2013-12-10 04:37:12 +00:00
C4 Bug 11757: remove dependency on POE 2014-02-15 01:38:15 +00:00
catalogue
cataloguing
circ
course_reserves bug 8215: (followup) avoid spurious warning in Apache log 2013-05-21 16:01:08 -07:00
debian Bug 11757: remove dependency on POE 2014-02-15 01:38:15 +00:00
docs
errors
etc Bug 11619: remove duplicate key in QueryParser config 2014-02-04 18:42:12 +00:00
install_misc Bug 11757: remove dependency on POE 2014-02-15 01:38:15 +00:00
installer Bug 11628: add missing staffaccess permission to French userflags.sql file 2014-02-18 20:43:31 +00:00
Koha Bug 11268: (follow-up) update DBIC schema classes 2014-01-31 15:58:58 +00:00
koha-tmpl Bug 11772: (follow-up) make warning about no active currency a link to currency setup page 2014-02-18 20:59:56 +00:00
labels
members Bug 11662: remove disused member-picupload.pl 2014-02-05 01:36:30 +00:00
misc
offline_circ
opac Bug 11773: fix crash in sco-main.pl if no active currency is set 2014-02-18 21:03:30 +00:00
OpenILS
patron_lists
patroncards
plugins
reports
reserve
reviews
rotating_collections
selenium
serials Bug 11687: remove disused script statecollection.pl 2014-02-07 15:22:43 +00:00
services
skel
sms
suggestion
svc Bug 11704: Make */svc/report print the correct headers 2014-02-13 02:59:42 +00:00
t Bug 11619: (follow-up) fix QueryParser.t 2014-02-04 18:44:07 +00:00
tags
test
tmp/modified_authorities
tools Bug 11660: remove disused tools/pdfViewer.pl 2014-02-05 01:36:00 +00:00
virtualshelves
xt Bug 11304: fix display of detail page holdings tab in translated Bootstrap theme 2013-11-27 16:52:02 +00:00
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
.mailmap
about.pl Bug 11772: Show warning on About page:System information if no active currency is defined 2014-02-18 20:54:23 +00:00
changelanguage.pl
edithelp.pl Bug 11661: sanitize file names supplied to edithelp.pl 2014-02-05 01:36:10 +00:00
fix-perl-path.PL
help.pl
INSTALL
install-CPAN.pl
INSTALL.debian
INSTALL.fedora7 Bug 11757: remove dependency on POE 2014-02-15 01:38:15 +00:00
INSTALL.opensuse Bug 11757: remove dependency on POE 2014-02-15 01:38:15 +00:00
INSTALL.ubuntu
koha_perl_deps.pl
kohaversion.pl Bug 11268: DBRev 3.15.00.016 2014-01-31 15:55:24 +00:00
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
README
README.robots
rewrite-config.PL Bug 10712: Save missing config variables to install log 2013-08-13 14:14:30 +00:00

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 3 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/