CRM-19205 - Fix delete report task
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 10 Aug 2016 11:12:39 +0000 (16:42 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 10 Aug 2016 11:12:39 +0000 (16:42 +0530)
CRM/Report/Page/Instance.php

index 8012311b5a7e7b913fc767aa46785f93592b1825..6929ae1244df91cd6573abf01a68251e0bc35057 100644 (file)
@@ -48,7 +48,7 @@ class CRM_Report_Page_Instance extends CRM_Core_Page {
     $reportUrl = CRM_Utils_System::url('civicrm/report/list', "reset=1");
 
     if ($action & CRM_Core_Action::DELETE) {
-      CRM_Report_BAO_ReportInstance::doFormDelete($reportUrl, $instanceId);
+      CRM_Report_BAO_ReportInstance::doFormDelete($instanceId, $reportUrl);
       return CRM_Utils_System::redirect($reportUrl);
     }