CRM-14921 retain context from custom search
authorBrian Shaughnessy <brian@lcdservices.biz>
Thu, 26 Jun 2014 16:20:29 +0000 (12:20 -0400)
committerBrian Shaughnessy <brian@lcdservices.biz>
Thu, 26 Jun 2014 16:20:29 +0000 (12:20 -0400)
templates/CRM/Contact/Form/Search/Custom.tpl
templates/CRM/Contact/Form/Search/Custom/Proximity.tpl

index 9d28f55fdce12955c5581b88ec51d178abf5eb05..f4947822cdf53d6fe88dae26ad8f564fc54538bd 100644 (file)
                     {foreach from=$columnHeaders item=header}
                         {assign var=fName value=$header.sort}
                         {if $fName eq 'sort_name'}
-                            <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`"}">{$row.sort_name}</a></td>
+                            <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`&context=custom"}">{$row.sort_name}</a></td>
                         {else}
                             <td>{$row.$fName}</td>
                         {/if}
index 3b4af91228d111da8fe4ec5d4c8fe04a59511102..ae4488ae771499b7c4530d27a73ad817f4434963 100644 (file)
                     {foreach from=$columnHeaders item=header}
                         {assign var=fName value=$header.sort}
                         {if $fName eq 'sort_name'}
-                            <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`"}">{$row.sort_name}</a></td>
+                            <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`&context=custom"}">{$row.sort_name}</a></td>
                         {else}
                             <td>{$row.$fName}</td>
                         {/if}