CRM-21753 add pass-through support for criteria in urls on dedupe pages
authoreileen <emcnaughton@wikimedia.org>
Thu, 15 Feb 2018 04:55:46 +0000 (17:55 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 4 Apr 2018 09:54:26 +0000 (21:54 +1200)
commit9f54f049feac72b3f20e668c02337c49c151424f
tree564f4b4b73efe8e8ad908aeb4a97b12c0c4d214b
parent33e74acf628ae5befdfcc7d3fcabfc5dd19ad3a8
CRM-21753 add pass-through support for criteria in urls on dedupe pages

This permits urls such as
 civicrm/contact/dedupefind?reset=1&rgid=4&gid=&limit=&criteria={"contact":{"contact_id":205}}&action=update

The contents of $criteria['contact'] are passed to the contact api to get a list of contacts to find possible
matches for (acls are applied when generating the match list to both the matched & match list in the next step).

Note that the urls are urlencoded & hence will have %22 rather than a quote so that feels xss safe but I added some
validation before I figured that part out & I think it still makes sense to keep it.
CRM/Contact/Form/Merge.php
CRM/Contact/Page/AJAX.php
CRM/Contact/Page/DedupeFind.php
CRM/Contact/Page/DedupeMerge.php
templates/CRM/Contact/Page/DedupeFind.tpl