X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FForm.php;h=f6e40a9bc4b423d030a4b8faaac4d6d71fba2960;hb=f512329a0ea87b3f0cb5b7b0f0cb143c66d5673a;hp=9b10eb4199c3d4600c66a240c5d48856150e66b4;hpb=24c3d106cc355a32b56170ffee2677b9f3f800ba;p=civicrm-core.git diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 9b10eb4199..f6e40a9bc4 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -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);