Bugzilla – Attachment 62985 Details for
Bug 15408
Timestamp on funds not updated when you duplicate a budget
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 15408 : deleted the timestamp so that the database gives a new one
SIGNED-OFF-Bug-15408--deleted-the-timestamp-so-tha.patch (text/plain), 990 bytes, created by
Katrin Fischer
on 2017-05-02 19:36:40 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 15408 : deleted the timestamp so that the database gives a new one
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2017-05-02 19:36:40 UTC
Size:
990 bytes
patch
obsolete
>From 9b1385cba7a356d0e173378bdb18fa4938c1911d Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Fri, 3 Feb 2017 15:22:36 +0000 >Subject: [PATCH] [SIGNED OFF] Bug 15408 : deleted the timestamp so that the > database gives a new one > >To duplicate the budget, the function CloneBudgetHierarchy create a new budget >from the old without the parameter timestamp, so that the database generates a >new one. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > C4/Budgets.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Budgets.pm b/C4/Budgets.pm >index c68fbec..f9aa110 100644 >--- a/C4/Budgets.pm >+++ b/C4/Budgets.pm >@@ -1161,6 +1161,7 @@ sub CloneBudgetHierarchy { > my $tidy_budget = > { map { join( ' ', @columns ) =~ /$_/ ? ( $_ => $budget->{$_} ) : () } > keys %$budget }; >+ delete $tidy_budget->{timestamp}; > my $new_budget_id = AddBudget( > { > %$tidy_budget, >-- >2.1.4
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15408
:
59886
|
59887
|
59890
|
59974
|
60244
|
60337
|
60338
|
60339
|
62985
|
62986
|
62987
|
65181
|
65182
|
65183
|
77524
|
77525
|
77526
|
77527
|
77539
|
77540
|
77541
|
77542