From 7a259ca6331a37d774d10abad460857768f61063 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 29 May 2013 10:03:41 -0700 Subject: [PATCH] Remove empty operators for dates in search builder CRM-12712 --- templates/CRM/Contact/Form/Search/Builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Contact/Form/Search/Builder.js b/templates/CRM/Contact/Form/Search/Builder.js index 4dd62ecd73..2ffe50fb81 100644 --- a/templates/CRM/Contact/Form/Search/Builder.js +++ b/templates/CRM/Contact/Form/Search/Builder.js @@ -146,7 +146,7 @@ var input = $('.crm-search-value input', row); if (!input.hasClass('hasDatepicker')) { // Remove operators that can't be used with a date - removeOperators(row, ['IN', 'NOT IN', 'LIKE', 'RLIKE']); + removeOperators(row, ['IN', 'NOT IN', 'LIKE', 'RLIKE', 'IS EMPTY', 'IS NOT EMPTY']); input.addClass('dateplugin').datepicker({ dateFormat: 'yymmdd', changeMonth: true, -- 2.25.1