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

CiviDiscount: Discount codes are case sensitive

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.15, 4.7.8
    • Fix Version/s: None
    • Component/s: CiviContribute
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Confirmed problem on 4.6.15 and replicated on sandbox.

      Discount codes are set in cividiscount.php to ignore case. However, on my site (CiviCRM 4.6.15 and Drupal 7.39 using CiviDiscount 3.2) and on the sandbox the following occurs:

      --EXPECTED BEHAVIOR: If a user enters a discount code in the correct case (as it is found in the database) and clicks "Apply", the discount is applied and the prices change to reflect the discount.

      --EXPECTED BEHAVIOR: If a user enters an invalid discount code and clicks "Apply", the system returns the message "The discount code you entered is invalid."

      --UNEXPECTED BEHAVIOR: If a user enters a discount code in incorrect case and clicks "Apply", the discount does not get applied to the displayed pricing. Additionally, if the user tries to continue by clicking "Confirm Contribution", the system returns the message "The discount code you entered is invalid."

        Attachments

          Activity

            People

            • Assignee:
              stoic Damon Kirkpatrick
              Reporter:
              stoic Damon Kirkpatrick
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: