From ba3261677ebf04ea84decf8068a98c53115cbaf1 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 27 Jun 2017 00:11:29 +0000 Subject: [PATCH] [SIGNED-OFF] Bug 18351: [FOLLOW-UP] Code fix See comment 10. Ready for testing. Signed-off-by: Owen Leonard --- admin/aqbudgetperiods.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/aqbudgetperiods.pl b/admin/aqbudgetperiods.pl index a7c1916..2668b4c 100755 --- a/admin/aqbudgetperiods.pl +++ b/admin/aqbudgetperiods.pl @@ -263,8 +263,8 @@ my @period_active_loop; foreach my $result ( @{$results} ) { my $budgetperiod = $result; $budgetperiod->{budget_active} = 1; - my @funds = GetBudgets({ budget_period_id => $budgetperiod->{budget_period_id} }); - $budgetperiod->{count} = scalar @funds; + my $funds = GetBudgets({ budget_period_id => $budgetperiod->{budget_period_id} }); + $budgetperiod->{count} = scalar @$funds; push( @period_active_loop, $budgetperiod ); } -- 2.1.4