Bugzilla – Attachment 127400 Details for
Bug 27550
"Duplicate budget" does not keep users associated with the funds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug 27550: "Duplicate budget" does not keep users associated with that budget
Bug-27550-Duplicate-budget-does-not-keep-users-ass.patch (text/plain), 1.20 KB, created by
Jérémy Breuillard
on 2021-11-05 16:54:03 UTC
(
hide
)
Description:
Bug 27550: "Duplicate budget" does not keep users associated with that budget
Filename:
MIME Type:
Creator:
Jérémy Breuillard
Created:
2021-11-05 16:54:03 UTC
Size:
1.20 KB
patch
obsolete
>From 1d0e568c46e159db07d4831b7325600ba0b84aef Mon Sep 17 00:00:00 2001 >From: jeremy breuillard <jeremy.breuillard@biblibre.com> >Date: Fri, 5 Nov 2021 16:30:25 +0000 >Subject: [PATCH] Bug 27550: "Duplicate budget" does not keep users associated > with that budget > >Once a budget is duplicated, all the parameters are copied except the >Users > >Test plan : >Home > Administration > Budgets >1)Create a budget to allow (active or inactive) >2)Give it some funds by filling up the form, especially Owner and >User(s) >3)Submit then you go back to the Budgets dashboard >4)Duplicate the Budget and click on its name >5)Edit it and notice that User(s) is empty >6)Apply the patch >7)Repeat from 1) to 5) >--- > C4/Budgets.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/C4/Budgets.pm b/C4/Budgets.pm >index 9624650..6b9e59a 100644 >--- a/C4/Budgets.pm >+++ b/C4/Budgets.pm >@@ -1285,6 +1285,8 @@ sub CloneBudgetHierarchy { > budget_period_id => $new_budget_period_id > } > ); >+ my @borrowernumbers = GetBudgetUsers($budget->{budget_id}); >+ ModBudgetUsers($new_budget_id, @borrowernumbers); > CloneBudgetHierarchy( > { > budgets => $budgets, >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 27550
:
127400
|
127975
|
128050
|
140334
|
140400
|
140401