Skip to content

Commit

Permalink
Fix EZP-20412: Can not restore from trash an item to 2 locations
Browse files Browse the repository at this point in the history
  • Loading branch information
dpobel committed Apr 12, 2013
1 parent f999622 commit 886d2f5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions kernel/content/restore.php
Expand Up @@ -86,7 +86,6 @@
$db = eZDB::instance();
$db->begin();
$locationAdded = false;
$mainNodeID = false;

$newLocationList = array();
$failedLocationList = array();
Expand All @@ -99,13 +98,10 @@

if ( $canCreate )
{
if ( $mainNodeID === false )
{
$isMain = true;
}
$newLocationList[] = array( 'parent_node_id' => $selectedNodeID,
'is_main' => $isMain );

$newLocationList[] = array(
'parent_node_id' => $selectedNodeID,
'is_main' => !$locationAdded
);
$locationAdded = true;
}
else
Expand Down

0 comments on commit 886d2f5

Please sign in to comment.