]> git.koha-community.org Git - koha.git/commit
Bug 14653: Acq planning export always use default active period
authorFridolin Somers <fridolin.somers@biblibre.com>
Thu, 6 Aug 2015 08:49:03 +0000 (10:49 +0200)
committerChris Cormack <chris@bigballofwax.co.nz>
Sat, 24 Oct 2015 07:37:50 +0000 (20:37 +1300)
commitb8facad6ae96d06edf10b323cd36e163c1a7c3b2
tree5f8ee592e429636111e033c977ea0ed39705fbd1
parent7c27cefedf448c3026420ddd032a8b65f075df20
Bug 14653: Acq planning export always use default active period

In Acq planning /cgi-bin/koha/admin/aqplan.pl, left side filter and export forms have no parameter budget_period_id nor authcat, so the use the default active period.
As said in code
- IF PERIOD_ID IS DEFINED,  GET THE PERIOD - ELSE GET THE ACTIVE PERIOD BY DEFAULT
my $period = GetBudgetPeriod($budget_period_id);

This patch corrects the export form.

Test plan :
- Create an active budget "B_ACTIVE" with 1 fund
- Create an inactive budget "B_OLD" with 3 funds
- Go to "B_OLD" planning by libraries
- You see 3 funds
- Click on "Submit" in export form
=> Without patch, you get the planning of "B_ACTIVE" with 1 fund
=> Without patch, you get the planning of "B_OLD" with 3 funds by libraries

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 852075d48e84c519c6bf0a28d492c1dafd291f0d)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt