CRM-19242 - fix create report task
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 24 Aug 2016 05:25:52 +0000 (10:55 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 24 Aug 2016 05:25:52 +0000 (10:55 +0530)
CRM/Report/Form.php

index 40f91822c50bace755770f5fd3003ad68e6d97f7..aede7d823aa11c49967a15101f4524a405f9dc60 100644 (file)
@@ -1545,7 +1545,17 @@ class CRM_Report_Form extends CRM_Core_Form {
   protected function getActions($instanceId) {
     $actions = CRM_Report_BAO_ReportInstance::getActionMetadata();
     if (empty($instanceId)) {
-      $actions['report_instance.save']['title'] = ts('Create Report');
+      $actions['report_instance.save'] = array(
+        'title' => ts('Create Report'),
+        'data' => array(
+          'is_confirm' => TRUE,
+          'confirm_title' => ts('Create Report'),
+          'confirm_refresh_fields' => json_encode(array(
+            'title' => array('selector' => '.crm-report-instanceForm-form-block-title', 'prepend' => ''),
+            'description' => array('selector' => '.crm-report-instanceForm-form-block-description', 'prepend' => ''),
+          )),
+        ),
+      );
     }
 
     if (!$this->_csvSupported) {