Allow moving a version to another app
This commit is contained in:
committed by
Alexander Nicolaysen Sørnes
parent
8501de46ac
commit
c7da357a4c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user