From: Coleman Watts Date: Wed, 29 May 2013 17:03:41 +0000 (-0700) Subject: Remove empty operators for dates in search builder CRM-12712 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7a259ca6331a37d774d10abad460857768f61063;p=civicrm-core.git Remove empty operators for dates in search builder CRM-12712 --- 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,