http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15049
--- Comment #5 from Bernardo Gonzalez Kriegel <[email protected]> --- (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. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
