From 00c461ecb16b12eb00fa7680bfa346c91efaf993 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Fri, 8 Nov 2013 16:44:17 -0800 Subject: [PATCH] CRM-13699 - Marking "Not a Duplicate" should return user to list of contacts to merge http://issues.civicrm.org/jira/browse/CRM-13699 --- CRM/Contact/Form/Merge.php | 1 + CRM/Core/BAO/PrevNextCache.php | 2 +- CRM/Dedupe/BAO/Rule.php | 2 +- templates/CRM/Contact/Form/Merge.tpl | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/Form/Merge.php b/CRM/Contact/Form/Merge.php index 6ef37a24d0..c305672e43 100644 --- a/CRM/Contact/Form/Merge.php +++ b/CRM/Contact/Form/Merge.php @@ -207,6 +207,7 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form { $this->assign('other_name', $other['display_name']); $this->assign('main_cid', $main['contact_id']); $this->assign('other_cid', $other['contact_id']); + $this->assign('rgid', $rgid); $this->_cid = $cid; $this->_oid = $oid; diff --git a/CRM/Core/BAO/PrevNextCache.php b/CRM/Core/BAO/PrevNextCache.php index 9983d93cae..8ab238b016 100644 --- a/CRM/Core/BAO/PrevNextCache.php +++ b/CRM/Core/BAO/PrevNextCache.php @@ -138,7 +138,7 @@ WHERE cacheKey = %3 AND CRM_Core_DAO::executeQuery($sql, $params); } - function retrieve($cacheKey, $join = NULL, $where = NULL, $offset = 0, $rowCount = 0) { + static function retrieve($cacheKey, $join = NULL, $where = NULL, $offset = 0, $rowCount = 0) { $query = " SELECT data FROM civicrm_prevnext_cache pn diff --git a/CRM/Dedupe/BAO/Rule.php b/CRM/Dedupe/BAO/Rule.php index 09440dda0f..ef294846ce 100644 --- a/CRM/Dedupe/BAO/Rule.php +++ b/CRM/Dedupe/BAO/Rule.php @@ -208,7 +208,7 @@ class CRM_Dedupe_BAO_Rule extends CRM_Dedupe_DAO_Rule { return $ruleFields; } - function validateContacts($cid, $oid) { + static function validateContacts($cid, $oid) { if (!$cid || !$oid) { return; } diff --git a/templates/CRM/Contact/Form/Merge.tpl b/templates/CRM/Contact/Form/Merge.tpl index 9c035a8cbe..7bae2d328d 100644 --- a/templates/CRM/Contact/Form/Merge.tpl +++ b/templates/CRM/Contact/Form/Merge.tpl @@ -35,7 +35,7 @@ -- 2.25.1