CRM-14941 - Multi-lingual break on Event Dashboard
authoratif-shaikh <shaikh388@gmail.com>
Thu, 3 Jul 2014 08:48:19 +0000 (14:18 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Thu, 3 Jul 2014 08:48:19 +0000 (14:18 +0530)
https://issues.civicrm.org/jira/browse/CRM-14941

CRM/Event/BAO/Event.php

index dde829e60a0371f4af93792277565c570239bb0a..66d3bd0f799d1b255c1eed1caef333e89c29a059 100644 (file)
@@ -362,7 +362,9 @@ WHERE      civicrm_event.is_active = 1 AND
     }
 
     //get the participant status type values.
-    $query = 'SELECT id, name, label, class FROM civicrm_participant_status_type';
+    $cpstObject = new CRM_Event_DAO_ParticipantStatusType();
+    $cpst = $cpstObject->getTableName();
+    $query = "SELECT id, name, label, class FROM $cpst";
     $status = CRM_Core_DAO::executeQuery($query);
     $statusValues = array();
     while ($status->fetch()) {