Skip to content

Commit

Permalink
Merge pull request #1159 from mr-wildcard/ezsubtreecopy-priority
Browse files Browse the repository at this point in the history
EZP-24289: Priority of children lost when using CLI script ezsubtreecopy.php
  • Loading branch information
yannickroger committed Apr 24, 2015
2 parents 49a6651 + dc31197 commit 986111a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/php/ezsubtreecopy.php
Expand Up @@ -189,6 +189,7 @@ function copyPublishContentObject( $sourceObject,
$newNode->setAttribute( 'priority', $srcNode->attribute( 'priority' ) );
$newNode->setAttribute( 'is_hidden', $srcNode->attribute( 'is_hidden' ) );
$newNode->setAttribute( 'is_invisible', $srcNode->attribute( 'is_invisible' ) );
$newNode->store();
$syncNodeIDListSrc[] = $srcNode->attribute( 'node_id' );
$syncNodeIDListNew[] = $newNode->attribute( 'node_id' );
$bSrcParentFound = true;
Expand Down

0 comments on commit 986111a

Please sign in to comment.