Fix POD in duplicateBranch, tidy the code.
This commit is contained in:
parent
6b1fde7038
commit
9e2cdbdc4b
1 changed files with 10 additions and 6 deletions
|
|
@ -38,15 +38,19 @@ These methods are available from this class:
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 duplicateBranch ( )
|
=head2 duplicateBranch ( [ $childrenOnly ] )
|
||||||
|
|
||||||
Duplicates this asset and the entire subtree below it. Returns the root of the new subtree.
|
Duplicates this asset and the entire subtree below it. Returns the root of the new subtree.
|
||||||
|
|
||||||
|
=head3 $childrenOnly
|
||||||
|
|
||||||
|
If true, then only children, and not descendants, will be duplicated.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub duplicateBranch {
|
sub duplicateBranch {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $childrenOnly = shift || 0;
|
my $childrenOnly = shift;
|
||||||
|
|
||||||
my $newAsset = $self->duplicate({skipAutoCommitWorkflows=>1,skipNotification=>1});
|
my $newAsset = $self->duplicate({skipAutoCommitWorkflows=>1,skipNotification=>1});
|
||||||
my $contentPositions = $self->get("contentPositions");
|
my $contentPositions = $self->get("contentPositions");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue