'title' => 'Current Employer',
'description' => 'Name of Current Employer',
);
+ $params['dupe_check'] = array(
+ 'title' => 'Check for Duplicates',
+ 'description' => 'Throw error if contact create matches dedupe rule',
+ );
}
/**
";
}
+ $orderByInner = "";
+ $orderByOuter = "ORDER BY exactFirst";
+ if ($config->includeOrderByClause) {
+ $orderByInner = "ORDER BY sort_name";
+ $orderByOuter .= ", sort_name";
+ }
+
//CRM-5954
$query = "
SELECT DISTINCT(id), data, sort_name {$selectAliases}
{$aclFrom}
{$additionalFrom} {$includeEmailFrom}
{$whereClause}
- ORDER BY sort_name
+ {$orderByInner}
LIMIT 0, {$limit} )
) t
-ORDER BY exactFirst, sort_name
+{$orderByOuter}
LIMIT 0, {$limit}
";
// send query to hook to be modified if needed