Details
Description
The search screen for mailings offers the possibility of filtering by mailing status (complete, scheduled, running, canceled, or draft). Codes are stored in English but, when the user interface is in a different language, SQL filter is generated using the transated names for statuses.
A patch will be sent for CRM/Mailing/Form/Search.php where, instead of using the translated statuses (as it is in 4.5):
CRM/Mailing/Form/Search.php
$statusVals = array(ts('Scheduled'), ts('Complete'), ts('Running'), ts('Canceled')); foreach ($statusVals as $status) { $this->addElement('checkbox', "mailing_status[$status]", NULL, $status); }
We will use codes and translations, separately:
CRM/Mailing/Form/Search.php
$statusVals = array( 'Scheduled' => ts('Scheduled'), 'Complete' => ts('Complete'), 'Running' => ts('Running'), 'Canceled' => ts('Canceled')); foreach ($statusVals as $statusId => $statusLabel) { $this->addElement('checkbox', "mailing_status[$statusId]", NULL, $statusLabel); }