Fix PHP8 warning on DedupeFind
authorlarssandergreen <lars@wildsight.ca>
Tue, 30 May 2023 16:38:42 +0000 (10:38 -0600)
committerlarssandergreen <lars@wildsight.ca>
Tue, 30 May 2023 16:38:42 +0000 (10:38 -0600)
templates/CRM/Contact/Page/DedupeFind.tpl

index 4175b3fd05cd271791423ee5725846dccfd30ec0..84e214c1c4f2d3b75a9d304d094a782ddee4c99a 100644 (file)
     var cacheKey = {/literal}'{$cacheKey|escape}'{literal};
 
     var dataUrl = {/literal}"{crmURL p='civicrm/ajax/toggleDedupeSelect' h=0 q='snippet=4'}"{literal};
-    var rgid = {/literal}"{$rgid}"{literal};
-    var gid = {/literal}"{$gid}"{literal};
 
-    rgid = rgid.length > 0 ? rgid : 0;
-    gid  = gid.length > 0 ? gid : 0;
-
-    CRM.$.post(dataUrl, {pnid: id, rgid: rgid, gid: gid, is_selected: is_selected, cacheKey : cacheKey}, function (data) {
+    CRM.$.post(dataUrl, {pnid: id, is_selected: is_selected, cacheKey : cacheKey}, function (data) {
       // nothing to do for now
     }, 'json');
   }