From 1c96a319ce6ac52a99802c294cda1e7b9d21ffa8 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Wed, 20 Apr 2016 00:39:35 +0530 Subject: [PATCH] CRM-18436: Non-mandatory custom rich text fields are mandatory in advanced search --- CRM/Core/BAO/CustomField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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': -- 2.25.1