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 <nick@quecheelibrary.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2014-09-18 12:40:21 +02:00 committed by Tomas Cohen Arazi
parent e988b5ada3
commit 2a838cabce

View file

@ -251,7 +251,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';