Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2015-03-09-21-44-34
[civicrm-core.git] / CRM / Batch / Page / AJAX.php
index 3ecc88e6dedd70fdf9f0566269838802d5c73b14..0bea0dcb5296468715c01bc77e60d2823577fdb1 100644 (file)
@@ -39,7 +39,7 @@
 class CRM_Batch_Page_AJAX {
 
   /**
-   * Save record
+   * Save record.
    */
   public function batchSave() {
     // save the entered information in 'data' column
@@ -52,7 +52,7 @@ class CRM_Batch_Page_AJAX {
   }
 
   /**
-   * Retrieve records
+   * Retrieve records.
    */
   public static function getBatchList() {
     $sortMapper = array(
@@ -114,6 +114,7 @@ class CRM_Batch_Page_AJAX {
         'links',
       );
     }
+    header('Content-Type: application/json');
     echo CRM_Utils_JSON::encodeDataTableSelector($batches, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
     CRM_Utils_System::civiExit();
   }