[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
Tue Oct 27 13:25:02 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15049
--- Comment #5 from Bernardo Gonzalez Kriegel <bgkriegel at 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.
More information about the Koha-bugs
mailing list