From 5324962a8beb4d85619d00d06be443f0a67b6629 Mon Sep 17 00:00:00 2001 From: Florian Bontemps Date: Fri, 5 Nov 2021 16:28:37 +0000 Subject: [PATCH] Bug 29429: (bug 17600 follow-up) Fix import in aqbudgetperiods.pl MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Adds GetBudgetHierarchy to the functions called by C4::Budgets Plan : 1. Create a budget with a random amount, save it. 2. Try to close the budget. 3. You should get an Error Trace. 4. Apply the patch 5. Close the budget again 6. It should work. Signed-off-by: Joonas Kylmälä Signed-off-by: Jonathan Druart --- admin/aqbudgetperiods.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/aqbudgetperiods.pl b/admin/aqbudgetperiods.pl index 71ede5dccb..efd174c167 100755 --- a/admin/aqbudgetperiods.pl +++ b/admin/aqbudgetperiods.pl @@ -55,7 +55,7 @@ use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Acquisition; -use C4::Budgets qw( GetBudgetPeriod GetBudgetPeriods ModBudgetPeriod AddBudgetPeriod GetBudgets DelBudgetPeriod CloneBudgetPeriod MoveOrders ); +use C4::Budgets qw( GetBudgetPeriod GetBudgetHierarchy GetBudgetPeriods ModBudgetPeriod AddBudgetPeriod GetBudgets DelBudgetPeriod CloneBudgetPeriod MoveOrders ); use C4::Log qw(logaction); use Koha::Acquisition::Currencies; -- 2.20.1