Allow moving a version to another app
This commit is contained in:
committed by
Alexander Nicolaysen Sørnes
parent
8501de46ac
commit
c7da357a4c
@@ -957,11 +957,19 @@ class Application {
|
||||
return 'appId';
|
||||
}
|
||||
|
||||
public static function objectGetEntries($sState, $iRows = 0, $iStart = 0, $sOrderBy = "appId", $bAscending = TRUE, $oFilters = null)
|
||||
public static function objectGetEntries($sState, $iRows = 0, $iStart = 0, $sOrderBy = 'default', $bAscending = TRUE, $oFilters = null)
|
||||
{
|
||||
$sLimit = "";
|
||||
$sOrdering = $bAscending ? "ASC" : "DESC";
|
||||
|
||||
if($sOrderBy == 'default')
|
||||
{
|
||||
if($sState == 'queued')
|
||||
$sOrderBy = 'appId';
|
||||
else
|
||||
$sOrderBy = 'appName';
|
||||
}
|
||||
|
||||
$sExtraTables = '';
|
||||
$sWhereFilter = $oFilters ? $oFilters->getWhereClause() : '';
|
||||
$aOptions = $oFilters ? $oFilters->getOptions() : array('onlyDownloadable' => 'false', 'appCategory' => null);
|
||||
|
||||
Reference in New Issue
Block a user