Add a moveChildren method to the objectManager and implement objectMoveChildren for version

and version_queue. Use this to move versions.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-23 23:31:24 +00:00
committed by WineHQ
parent 886cdeafa3
commit cf81d542ee
5 changed files with 109 additions and 4 deletions

View File

@@ -64,6 +64,11 @@ if($sErrors === TRUE)
if($oObject->iId && $aClean['sAction'] == "delete")
$oObject->delete_entry();
/* Provided the necessary values are present, an object's children may be moved
without any confirmation */
if($oObject->iId && $aClean['sAction'] == "moveChildren" && $aClean['iNewId'])
$oObject->move_children($aClean['iNewId']);
apidb_header($oObject->sTitle);
/* display a particular element */