Merge pull request #4637 from eileenmcnaughton/CRM-15670
[civicrm-core.git] / CRM / Event / Page / AJAX.php
index 355c473f74c1f7f0f2d08de0de58c85c52ac3793..a0ddc764e094b26a60bf23751ab7457b1718f4f5 100644 (file)
@@ -39,7 +39,7 @@
 class CRM_Event_Page_AJAX {
 
   /**
-   * Function for building EventFee combo box
+   * Building EventFee combo box
    * FIXME: This ajax callback could be eliminated in favor of an entityRef field but the priceFieldValue api doesn't currently support filtering on entity_table
    */
   function eventFee() {
@@ -64,9 +64,7 @@ GROUP BY cv.label";
     while ($dao->fetch()) {
       $results[] = array('id' => $dao->id, 'text' => $dao->label);
     }
-    echo json_encode($results);
-    CRM_Utils_System::civiExit();
+    CRM_Utils_JSON::output($results);
   }
-
 }