CRM-15090: fix name when adding dashlet
authorCiviCRM <info@civicrm.org>
Mon, 18 Aug 2014 03:16:53 +0000 (08:46 +0530)
committerCiviCRM <info@civicrm.org>
Mon, 18 Aug 2014 03:16:53 +0000 (08:46 +0530)
CRM/Report/BAO/ReportInstance.php

index f04b4a7e830759b8d7d61bb4b21c68d358b1e449..e17d0fd2e23035d0535b675e9aabaccc7b5b9b86 100644 (file)
@@ -216,7 +216,7 @@ class CRM_Report_BAO_ReportInstance extends CRM_Report_DAO_ReportInstance {
         $section = 1;
         $chart   = "&charts=" . $params['charts'];
       }
-
+      $dashletParams['name'] = "report/{$instance->id}";
       $dashletParams['url'] = "civicrm/report/instance/{$instance->id}&reset=1&section={$section}&snippet=5{$chart}&context=dashlet";
       $dashletParams['fullscreen_url'] = "civicrm/report/instance/{$instance->id}&reset=1&section={$section}&snippet=5{$chart}&context=dashletFullscreen";
       $dashletParams['instanceURL'] = "civicrm/report/instance/{$instance->id}";