When selecting 'Move Child Objects' for versions, only show versions of parent app
This commit is contained in:
committed by
Alexander Nicolaysen Sørnes
parent
3df5e22800
commit
f84c811569
@@ -1329,16 +1329,25 @@ class Application {
|
||||
}
|
||||
|
||||
public function objectGetChildren($bIncludeDeleted = false)
|
||||
{
|
||||
return $this->objectGetChildrenClassSpecific('', $IncludeDeleted);
|
||||
}
|
||||
|
||||
public function objectGetChildrenClassSpecific($sClass = '', $bIncludeDeleted = false)
|
||||
{
|
||||
$aChildren = array();
|
||||
|
||||
/* Get versions */
|
||||
foreach($this->getVersions(false, true, $bIncludeDeleted) as $oVersion)
|
||||
foreach($this->getVersions(false, true, $bIncludeDeleted) as $oVersion)
|
||||
{
|
||||
$aChildren += $oVersion->objectGetChildren($bIncludeDeleted);
|
||||
if($sClass != 'version')
|
||||
$aChildren += $oVersion->objectGetChildren($bIncludeDeleted);
|
||||
$aChildren[] = $oVersion;
|
||||
}
|
||||
|
||||
if($sClass == 'version')
|
||||
return $aChildren;
|
||||
|
||||
/* Get urls */
|
||||
$sQuery = "SELECT * FROM appData WHERE type = '?' AND appId = '?'";
|
||||
$hResult = query_parameters($sQuery, "url", $this->iAppId);
|
||||
|
||||
Reference in New Issue
Block a user