CRM-13699 - Marking "Not a Duplicate" should return user to list of contacts to merge
authorDonald A. Lobo <lobo@civicrm.org>
Sat, 9 Nov 2013 00:44:17 +0000 (16:44 -0800)
committerDonald A. Lobo <lobo@civicrm.org>
Sat, 9 Nov 2013 00:44:17 +0000 (16:44 -0800)
http://issues.civicrm.org/jira/browse/CRM-13699

CRM/Contact/Form/Merge.php
CRM/Core/BAO/PrevNextCache.php
CRM/Dedupe/BAO/Rule.php
templates/CRM/Contact/Form/Merge.tpl

index 6ef37a24d090df8b3d62b391005619f54c362570..c305672e4397ad52de7c6bee639926d623f5cdf1 100644 (file)
@@ -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;
index 9983d93caed483bbac4e29ac876b1768820084ec..8ab238b016a9a7c23359c0fe35e39da95e725f0e 100644 (file)
@@ -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
index 09440dda0fb8d28115967e0b239c6b2dec48a08c..ef294846ce78c1dedee964ebf36fbb6e4142963a 100644 (file)
@@ -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;
     }
index 9c035a8cbe133c2abb437d918219e5e39c9daeb7..7bae2d328d559b12b32fce4af99f98df2115105a 100644 (file)
@@ -35,7 +35,7 @@
 </div>
 
 <div class="action-link">
-       <a id='notDuplicate' href="#" title={ts}Mark this pair as not a duplicate.{/ts} onClick="processDupes( {$main_cid}, {$other_cid}, 'dupe-nondupe', 'merge-contact', '{crmURL p="civicrm/contact/deduperules" q="reset=1&context=nonDupe"}' );return false;">&raquo; {ts}Mark this pair as not a duplicate.{/ts}</a>
+       <a id='notDuplicate' href="#" title={ts}Mark this pair as not a duplicate.{/ts} onClick="processDupes( {$main_cid}, {$other_cid}, 'dupe-nondupe', 'merge-contact', '{crmURL p="civicrm/contact/dedupefind" q="reset=1&action=update&rgid=$rgid"}' );return false;">&raquo; {ts}Mark this pair as not a duplicate.{/ts}</a>
 </div>
 
 <table>