have edit branch send properties as a copy instead of a reference

This commit is contained in:
Graham Knop 2007-09-07 21:27:08 +00:00
parent 2b2fa12d0e
commit 3dbde9ff3f
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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;