Pass duplicate the skipAutoCommitWorkflows switch. Fixes bug #11581.
This commit is contained in:
parent
ce8b1dc63a
commit
4db2408a18
2 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
- fixed #11576: Default WebGUI config has a bad macro
|
||||
- fixed #11578: Collaboration System: add edit stamp uses wrong user
|
||||
- added #9774: More owner information in the gallery
|
||||
- fixed #11581: Calendar problems
|
||||
|
||||
7.9.5
|
||||
- Asset->www_copy now has a progress bar
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ sub www_duplicateList {
|
|||
foreach my $assetId ($session->form->param("assetId")) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($session,$assetId);
|
||||
if ($asset->canEdit) {
|
||||
my $newAsset = $asset->duplicate;
|
||||
my $newAsset = $asset->duplicate({skipAutoCommitWorkflows => 1, });
|
||||
$newAsset->update({ title=>$newAsset->getTitle.' (copy)'});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue