Allow moving a version to another app

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-04-22 21:36:26 +02:00
committed by Alexander Nicolaysen Sørnes
parent 8501de46ac
commit c7da357a4c
4 changed files with 116 additions and 1 deletions

View File

@@ -85,6 +85,13 @@ if($sAction)
$oObject->handle_anonymous_submission();
break;
case 'changeParent':
/* Provided the necessary values are present, an object may be moved
to another parent without any confirmation */
if($oObject->getId() && getInput('iNewId', $aClean))
$oObject->change_parent($aClean['iNewId']);
break;
case 'moveChildren':
/* Provided the necessary values are present, an object's children may be moved
without any confirmation */
@@ -121,6 +128,10 @@ if($oObject->getId() && $sAction != "add")
$oObject->display_entry_for_editing($aClean, $sErrors);
break;
case 'showChangeParent':
$oObject->display_change_parent();
break;
case "showMoveChildren":
$oObject->display_move_children();
break;