case 'Date':
case 'Timestamp':
case 'ContactReference':
+ case 'EntityReference':
case 'MysqlOrderByDirection':
$validatedData = self::validate($data, $type, $abort);
if (isset($validatedData)) {
'Date',
'Timestamp',
'ContactReference',
+ 'EntityReference',
'MysqlColumnNameOrAlias',
'MysqlOrderByDirection',
'MysqlOrderBy',
break;
case 'ContactReference':
+ case 'EntityReference':
// null is valid
if (strlen(trim($data)) == 0) {
return trim($data);
}
- if (CRM_Utils_Rule::validContact($data)) {
+ if (CRM_Utils_Rule::positiveInteger($data)) {
return (int) $data;
}
break;