From 7253a01675f7231115a21aa7a99b1c49f4b10a58 Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Fri, 3 Feb 2017 15:22:36 +0000 Subject: [PATCH] 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 Signed-off-by: Nick Clemens --- C4/Budgets.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Budgets.pm b/C4/Budgets.pm index e0b7dc1..b352f50 100644 --- a/C4/Budgets.pm +++ b/C4/Budgets.pm @@ -1221,6 +1221,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