Add is empty filter to search / api
[civicrm-core.git] / Civi / Api4 / Utils / CoreUtil.php
index 25c01f0e74bd642c50bde61399f0f340f30181c6..ebe79137970d4e7a01ee6e310af5b044f49e44e7 100644 (file)
@@ -77,6 +77,8 @@ class CoreUtil {
   public static function getOperators() {
     $operators = \CRM_Core_DAO::acceptedSQLOperators();
     $operators[] = 'CONTAINS';
+    $operators[] = 'IS EMPTY';
+    $operators[] = 'IS NOT EMPTY';
     return $operators;
   }