We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5de0eb8 + 4b41f81 commit d594680Copy full SHA for d594680
site/elements/civicustomsearch.php
@@ -52,10 +52,10 @@ protected function getInput() {
52
require_once 'CRM/Core/Config.php';
53
$config = CRM_Core_Config::singleton();
54
$query = "
55
-SELECT value, description
56
-FROM civicrm_option_value
57
-WHERE option_group_id =24
58
-";
+SELECT op_val.value, op_val.description
+FROM civicrm_option_value op_val
+INNER JOIN civicrm_option_group op_group ON (op_group.id = op_val.option_group_id)
+AND op_group.name = 'custom_search'";
59
$dao = CRM_Core_DAO::executeQuery($query);
60
while ($dao->fetch()) {
61
$options[] = JHTML::_('select.option', $dao->value, $dao->description);
0 commit comments