From 3dbde9ff3ff76e2fececa6c2dc6f0b9b988aa3fd Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Fri, 7 Sep 2007 21:27:08 +0000 Subject: [PATCH] have edit branch send properties as a copy instead of a reference --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/AssetBranch.pm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 7e93eec94..d6023e21f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -29,6 +29,7 @@ - add: DataForm template variable for the group to view entries - fix: EMS Badge Reporting overlaps with other EMS on the system - fix: SQLReport templatable download doesn't run nested queries + - fix: Edit branch copies hide from navigation setting from events and posts to rest of branch - Dashboard now shows default view if user hasn't configured their own view 7.4.5 diff --git a/lib/WebGUI/AssetBranch.pm b/lib/WebGUI/AssetBranch.pm index bc50b823f..de1416fb1 100644 --- a/lib/WebGUI/AssetBranch.pm +++ b/lib/WebGUI/AssetBranch.pm @@ -297,7 +297,8 @@ sub www_editBranchSave { $data{url} .= $descendant->get("url"); } } - my $newRevision = $descendant->addRevision(\%data, undef, {skipAutoCommitWorkflows=>1}); + # copy of %data instead of reference so modifications don't propagate to the next asset + my $newRevision = $descendant->addRevision({%data}, undef, {skipAutoCommitWorkflows=>1}); foreach my $form ($self->session->form->param) { if ($form =~ /^metadata_(.*)$/) { my $fieldName = $1;