Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15434

Mailing search form doesn't work properly if language is other than English

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5.2
    • Component/s: CiviMail
    • Labels:
      None
    • Documentation Required?:
      None

      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);
          }
      

        Attachments

          Activity

            People

            • Assignee:
              rohan1990 Rohan Ramesh Katkar
              Reporter:
              capo Carlos Capote
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: