From: deb.monish Date: Tue, 19 Apr 2016 19:09:35 +0000 (+0530) Subject: CRM-18436: Non-mandatory custom rich text fields are mandatory in advanced search X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1c96a319ce6ac52a99802c294cda1e7b9d21ffa8;p=civicrm-core.git CRM-18436: Non-mandatory custom rich text fields are mandatory in advanced search --- diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index f4ea4fc68f..13d0568151 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -1007,7 +1007,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { if ($field->text_length) { $attributes['maxlength'] = $field->text_length; } - $element = $qf->add('wysiwyg', $elementName, $label, $attributes, $search); + $element = $qf->add('wysiwyg', $elementName, $label, $attributes, $useRequired && !$search); break; case 'Autocomplete-Select':