have edit branch send properties as a copy instead of a reference
This commit is contained in:
parent
2b2fa12d0e
commit
3dbde9ff3f
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue