Skip to content

Commit d594680

Browse files
committed
Merge pull request civicrm#24 from rohankatkar/CRM15846
Additional changes for CRM-15846
2 parents 5de0eb8 + 4b41f81 commit d594680

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/elements/civicustomsearch.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ protected function getInput() {
5252
require_once 'CRM/Core/Config.php';
5353
$config = CRM_Core_Config::singleton();
5454
$query = "
55-
SELECT value, description
56-
FROM civicrm_option_value
57-
WHERE option_group_id =24
58-
";
55+
SELECT op_val.value, op_val.description
56+
FROM civicrm_option_value op_val
57+
INNER JOIN civicrm_option_group op_group ON (op_group.id = op_val.option_group_id)
58+
AND op_group.name = 'custom_search'";
5959
$dao = CRM_Core_DAO::executeQuery($query);
6060
while ($dao->fetch()) {
6161
$options[] = JHTML::_('select.option', $dao->value, $dao->description);

0 commit comments

Comments
 (0)