BUG-14984 validations

- A validation was added
This commit is contained in:
Marco Antonio Nina
2014-06-16 11:47:23 -04:00
parent 0c2a63456d
commit 7989457678
2 changed files with 15 additions and 3 deletions

View File

@@ -21,6 +21,14 @@ class Applications
) {
$callback = isset($callback)? $callback : "stcCallback1001";
$dir = isset($dir)? $dir : "DESC";
if (isset($sort)) {
G::LoadClass('phpSqlParser');
$parser = new PHPSQLParser($sort);
$sort = $parser->parsed;
$sort = $sort[''][0];
}
$sort = isset($sort)? $sort : "";
$start = isset($start)? $start : "0";
$limit = isset($limit)? $limit : "25";
@@ -493,10 +501,10 @@ class Applications
//execute the query
$oDataset = AppCacheViewPeer::doSelectRS( $Criteria );
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
$oDataset->next();
//g::pr($oDataset);
//g::pr($oDataset);
$result = array ();
$result['totalCount'] = $totalCount;
$rows = array ();