From ed30e8b9757930762849b9ec5dc22271f1270e55 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 18 Sep 2014 12:40:21 +0200 Subject: [PATCH] [SIGNED OFF] Bug 12956: Users are not linked to a fund When creating a fund, if you add some users, they are not linked to the fund. Note that it works if you link them when editing the fund. Test plan: - Try to link users to a fund on creating it. - On editing, you should see the linked user list. Signed-off-by: Nick Clemens --- admin/aqbudgets.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl index 1a66c9c..fbee4da 100755 --- a/admin/aqbudgets.pl +++ b/admin/aqbudgets.pl @@ -253,7 +253,7 @@ if ($op eq 'add_form') { $template->param(error_not_authorised_to_modify => 1); } } else { - AddBudget( $budget_hash ); + $budget_hash->{budget_id} = AddBudget( $budget_hash ); ModBudgetUsers($budget_hash->{budget_id}, @budgetusersid); } $op = 'list'; -- 1.7.10.4