[koha-commits] main Koha release repository branch 3.14.x updated. v3.14.06-38-g0e0b39d

Git repo owner gitmaster at git.koha-community.org
Mon May 19 15:53:16 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 3.14.x has been updated
       via  0e0b39deafed3376bc65af9bf9ee7ec678c60d35 (commit)
      from  330d25dd4c4ee13c1076e5736ed87319310e9556 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0e0b39deafed3376bc65af9bf9ee7ec678c60d35
Author: Marc Véron <veron at veron.ch>
Date:   Sat Feb 15 17:07:55 2014 +0100

    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 at bigballofwax.co.nz>
    Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    (cherry picked from commit 1db56c834b297eb7fd968691f66ef3517771cba5)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>

-----------------------------------------------------------------------

Summary of changes:
 opac/sco/sco-main.pl |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list