Skip to content

Commit

Permalink
Merge pull request #9698 from jitendrapurohit/CRM-19842
Browse files Browse the repository at this point in the history
CRM-19842-Can't delete a dedupe rule
  • Loading branch information
kurund authored Jan 21, 2017
2 parents 3234159 + cbd404b commit 9e991d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CRM/Contact/Page/DedupeRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ public function delete($id) {

$rgDao = new CRM_Dedupe_DAO_RuleGroup();
$rgDao->id = $id;
$rgDao->delete();
if ($rgDao->find(TRUE)) {
$rgDao->delete();
CRM_Core_Session::setStatus(ts("The rule '%1' has been deleted.", array(1 => $rgDao->title)), ts('Rule Deleted'), 'success');
CRM_Utils_System::redirect(CRM_Utils_System::url($this->userContext(), 'reset=1'));
}
}

}

0 comments on commit 9e991d2

Please sign in to comment.