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

Negative price set options break total fee javascript code

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      Adding a negative option to a radio price set field breaks the total fee javascript calculation. This is due to splitting text values on a '-', which is also part of the value for negative options.

      This patch splits the name and value members into separate attributes instead of munging them together and splitting in javascript. Although only radios were affected by this issue since the other widgets used "_" underscores as a splitter, this patch splits these into separate attributes for all widgets for consistency. Select widgets are an exception since they already have a clean "price" attribute that represents the value.

        Attachments

          Activity

            People

            • Assignee:
              sushant Sushant Paste
              Reporter:
              fearlsgroove Matt Moen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: