http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15049 --- Comment #5 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- (In reply to Marc Véron from comment #4)
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.
Yeap, but 'budgets-active-currency.inc' expects the currency and not a hashref. Other files that use the include put "currency => $cur->{currency}" Perhaps this code my $cur = GetCurrency(); if ( $cur ) { $template->param( currency => $cur->{currency}, ); } -- You are receiving this mail because: You are watching all bug changes.