From: yashodha Date: Mon, 21 Sep 2015 08:05:09 +0000 (+0530) Subject: CRM-17237: Add Dedupe Rule allows user to save invalid (empty) RESERVED rule X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fee842be1da50c8c2c9aef638b9597c044ceaad7;p=civicrm-core.git CRM-17237: Add Dedupe Rule allows user to save invalid (empty) RESERVED rule ---------------------------------------- * CRM-17237: Add Dedupe Rule allows user to save invalid (empty) RESERVED rule https://issues.civicrm.org/jira/browse/CRM-17237 --- diff --git a/CRM/Contact/Form/DedupeRules.php b/CRM/Contact/Form/DedupeRules.php index b944442162..d438080d35 100644 --- a/CRM/Contact/Form/DedupeRules.php +++ b/CRM/Contact/Form/DedupeRules.php @@ -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"])) {