Bug 19328: Internal server error because of missing currency
commit7211fd22bad5b3a3939cca6fe766ee65a7c62b13
authorMarc Véron <veron@veron.ch>
Sun, 17 Sep 2017 09:53:34 +0000 (17 11:53 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Oct 2017 16:05:31 +0000 (11 13:05 -0300)
treeedc9ce8ea82251b54d930758f3570ddc933e6c77
parent75994dc94a2f5d1a500a7789ed113575c49f8b51
Bug 19328: Internal server error because of missing currency

This patch fixes internal server errors because of missing active currency
in files aqbudgetperiods.pl, aqbudgets.pl and aqplan.pl.

To reproduce:
- Make sure that no active currency is defined. You can undefine the active
  currency in Administration->Currencies and exchange rates
- Try to go to Administration->Budgets and Admistration->Funds
Result: Internal server error

To test:
- Apply patch
- Restart plack
- Try to reproduce issue, it should no longer occur. There should be a
  yellow message box "No active currency is defined"
- From Administration-> Budgets administration try to edit a fund and go to
  "Planning". Verify that the message box appears here as well.

Signed-off-by: David Bourgault <david.bourgault@inlibro.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
admin/aqbudgetperiods.pl
admin/aqbudgets.pl
admin/aqplan.pl