Minor changes for CRM-15434
authorRohan Katkar <rohan.katkar@webaccessglobal.com>
Mon, 13 Oct 2014 05:23:06 +0000 (10:53 +0530)
committerRohan Katkar <rohan.katkar@webaccessglobal.com>
Mon, 13 Oct 2014 05:23:06 +0000 (10:53 +0530)
CRM/Mailing/Form/Search.php

index bd8e4388a55f1223b0bfb531d4c3375dc298323f..fc1e860f303ebf653ca8ebdc17e44e4dfee14f98 100644 (file)
@@ -55,11 +55,7 @@ class CRM_Mailing_Form_Search extends CRM_Core_Form {
     CRM_Campaign_BAO_Campaign::addCampaignInComponentSearch($this);
 
     // CRM-15434 - Fix mailing search by status in non-English languages
-    $statusVals = array(
-      'Scheduled' => ts('Scheduled'),
-      'Complete' => ts('Complete'),
-      'Running' => ts('Running'),
-      'Canceled' => ts('Canceled'));
+    $statusVals = CRM_Core_SelectValues::getMailingJobStatus();
     foreach ($statusVals as $statusId => $statusName) {
       $this->addElement('checkbox', "mailing_status[$statusId]", NULL, $statusName);
     }