Merge pull request #15638 from eileenmcnaughton/vangelis
[civicrm-core.git] / CRM / Core / Form.php
index 9b10eb4199c3d4600c66a240c5d48856150e66b4..f6e40a9bc4b423d030a4b8faaac4d6d71fba2960 100644 (file)
@@ -1648,6 +1648,10 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
         return $this->addRadio($name, $label, $options, $props, NULL, $required);
 
       case 'CheckBox':
+        if ($context === 'search') {
+          $this->addYesNo($name, $label, TRUE, FALSE, $props);
+          return;
+        }
         $text = isset($props['text']) ? $props['text'] : NULL;
         unset($props['text']);
         return $this->addElement('checkbox', $name, $label, $text, $props);