From 0e46ae3002a25b5848338120ac469a02d9ede39a Mon Sep 17 00:00:00 2001 From: Florian Bontemps Date: Fri, 5 Nov 2021 16:28:37 +0000 Subject: [PATCH] Bug 29429: Cannot close budgets 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. --- 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