CRM-17237: Add Dedupe Rule allows user to save invalid (empty) RESERVED rule
authoryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 21 Sep 2015 08:05:09 +0000 (13:35 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 21 Sep 2015 08:05:09 +0000 (13:35 +0530)
----------------------------------------
* CRM-17237: Add Dedupe Rule allows user to save invalid (empty) RESERVED rule
  https://issues.civicrm.org/jira/browse/CRM-17237

CRM/Contact/Form/DedupeRules.php

index b944442162804f9eb3c6485d67fd5967a9967817..d438080d3515cf83ab413c8ff90f6bca4e70724f 100644 (file)
@@ -153,10 +153,6 @@ class CRM_Contact_Form_DedupeRules extends CRM_Admin_Form {
    */
   public static function formRule($fields, $files, $self) {
     $errors = array();
-    if (!empty($fields['is_reserved'])) {
-      return TRUE;
-    }
-
     $fieldSelected = FALSE;
     for ($count = 0; $count < self::RULES_COUNT; $count++) {
       if (!empty($fields["where_$count"])) {