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

Positive integer validation on text/numeric price fields

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.7.8
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      Not sure if this is actually a regression, however:

      It is possible to enter negative numbers and fractions into the 'Text/Numeric Quantity' price field.

      For example, if you create a new Text/Numeric Quantity field for 'Number of adults' with the price of £10.

      When completing the event you can enter

      -2

      and then the total becomes

      -£20

      Bargain.

      Also, 2.5 adults would make the price £25.

      I'm not sure when you wouldn't want these fields to validate 0 or a positive integer only.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              john John K.
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: