[Koha-bugs] [Bug 11773] Crash 'undefined value as a HASH' in sco-main.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 17 12:10:09 CET 2014


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

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25311|0                           |1
        is obsolete|                            |
                 CC|                            |jonathan.druart at biblibre.co
                   |                            |m

--- Comment #3 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 25344
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25344&action=edit
Bug 11773 - Crash 'undefined value as a HASH' in sco-main.pl

    Bug 11773 - Crash 'undefined value as a HASH' in sco-main.pl

    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 wit 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>

-- 
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