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() {
while ($dao->fetch()) {
$results[] = array('id' => $dao->id, 'text' => $dao->label);
}
- echo json_encode($results);
- CRM_Utils_System::civiExit();
+ CRM_Utils_JSON::output($results);
}
-
}