[Koha-bugs] [Bug 15049] Add warning about "No active currency" to Acquisitions start page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 26 23:31:59 CET 2015


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

--- Comment #4 from Marc Véron <veron at veron.ch> ---
(In reply to Bernardo Gonzalez Kriegel from comment #3)
> You need to use
> 
> currency => GetCurrency()->{currency},
> 
> in acqui/acqui-home.pl, if not you get "Currency = HASH(0x763c5a8)"
> 
> Save for that, it works Ok & without errors.

Hi Bernardo,

Thanks for pointing that out.

However with GetCurrency()->{currency} I get:

Can't use an undefined value as a HASH reference at
/usr/share/kohaclone/acqui/acqui-home.pl line 117.

The reason is that GetCurrency does a SELECT * FROM currency where active = '1'
(C4/Budgets.pm, after line 932)

If no active currency is set the return value is not defined.

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


More information about the Koha-bugs mailing list