Skip to content

Commit

Permalink
updated version with syntactic corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
SeroMan committed Oct 25, 2011
1 parent 1549eef commit 0f8187f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/ezoe/upload.php
Expand Up @@ -121,6 +121,14 @@
$newObjectName = $newObject->attribute( 'name' );
$newObjectNodeID = (int) $newObject->attribute( 'main_node_id' ); // this will be empty if object is stopped by approve workflow

// set parent section for new object
if ( isset( $newObjectNodeID ) && $newObjectNodeID )
{
$newObjectParentNodeObject = $newObject->attribute( 'main_node' )->attribute( 'parent' )->attribute( 'object' );
$newObject->setAttribute( 'section_id', $newObjectParentNodeObject->attribute( 'section_id' ) );
$newObject->store();
}

// edit attributes
$newVersionObject = $newObject->attribute( 'current' );
$newObjectDataMap = $newVersionObject->attribute('data_map');
Expand Down

0 comments on commit 0f8187f

Please sign in to comment.