*/
/**
- * File for CiviCRM APIv3 utilitity functions
+ * CiviCRM APIv3 utility functions.
*
* @package CiviCRM_APIv3
- * @subpackage API_utils
- *
- * @copyright CiviCRM LLC (c) 2004-2014
- * @version $Id: utils.php 30879 2010-11-22 15:45:55Z shot $
*/
/**
$returnProperties = NULL;
}
+ if (substr($sort, 0, 2) == 'id') {
+ $sort = $entity . "_" . $sort;
+ }
+
$newParams = CRM_Contact_BAO_Query::convertFormValues($inputParams);
foreach ($newParams as &$newParam) {
if ($newParam[1] == '=' && is_array($newParam[2])) {
$newParam[2] = $sqlFilter;
}
}
-
}
$skipPermissions = !empty($params['check_permissions']) ? 0 : 1;
* Replace the old set of entities (matching some given keys) with a new set of
* entities (matching the same keys).
*
- * Note: This will verify that 'values' is present, but it does not directly verify
+ * @note This will verify that 'values' is present, but it does not directly verify
* any other parameters.
*
* @param string $entity