Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.8, 4.2.2, Unscheduled
-
Fix Version/s: 4.3.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
Matching on a boolean custom field with "Yes" as a value translates the value to "No" in the displayed criterias in search builder due to "$value = (int ) $value;" in CRM/Core/BAO/CustomQuery.php.
The issue exists at least since 2.0.6 and persists in trunk as well.
The attached patch is supposed to address the issue.