CRM-16742: Fixing Activity Dashlet bug related to DataTables migration
authorJoseph Lacey <joseph@palantetech.coop>
Tue, 7 Jul 2015 14:44:18 +0000 (10:44 -0400)
committerJoseph Lacey <joseph@palantetech.coop>
Tue, 7 Jul 2015 14:44:18 +0000 (10:44 -0400)
----------------------------------------
* CRM-16742: dashlet error on dmaster
  https://issues.civicrm.org/jira/browse/CRM-16742

templates/CRM/Activity/Selector/Selector.tpl

index f6a214dc733bfdf34688d7aea549acf35b624494..01e470ff59cc8ff042b7897fcda4f427085c66c3 100644 (file)
@@ -23,7 +23,6 @@
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-
 <div class="crm-activity-selector-{$context}">
   <div class="crm-accordion-wrapper crm-search_filters-accordion">
     <div class="crm-accordion-header">
@@ -58,7 +57,8 @@
   {literal}
     <script type="text/javascript">
       (function($) {
-        CRM.$('table.contact-activity-selector-activity').data({
+        var context = {/literal}"{$context}"{literal};
+        CRM.$('table.contact-activity-selector-' + context).data({
           "ajax": {
             "url": {/literal}'{crmURL p="civicrm/ajax/contactactivity" h=0 q="snippet=4&context=$context&cid=$contactId"}'{literal},
             "data": function (d) {