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

Recurring contribution can't save correct frequency_unit after localization of dropdown select menu

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.6, 3.2
    • Fix Version/s: 3.2.3
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      We found some issues after translation. We are not sure what's the better way to solve it, just have a temporary patch for fix that.

      1. We can't translate drop-down select box of frequency unit when we in the online contribution page. Patch 1 is trying to fix that.
      The workaround is at patch1.

      2. After we doing that patch, we check the html and quickForm value is correct, but the database save value by the $params use option lable not option value. So we can't save the frequency_unit into database because $params it's a translated string.
      The workaround is at patch2.

        Attachments

        1. patch1.diff
          1 kB
          Jimmy Huang
        2. patch2.diff
          0.7 kB
          Jimmy Huang

          Activity

            People

            • Assignee:
              sushant Sushant Paste
              Reporter:
              jimyhuang Jimmy Huang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: