Remove empty operators for dates in search builder CRM-12712
authorColeman Watts <coleman@civicrm.org>
Wed, 29 May 2013 17:03:41 +0000 (10:03 -0700)
committerColeman Watts <coleman@civicrm.org>
Wed, 29 May 2013 17:03:41 +0000 (10:03 -0700)
templates/CRM/Contact/Form/Search/Builder.js

index 4dd62ecd73c3c0a7a14517028a4960923cf446c6..2ffe50fb8113856e79d88d516d962fb9654f6b41 100644 (file)
     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,