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

hard limit on number of options for price field; no warning/error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 4.4.0
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      When creating a simple membership contribution page, you cannot check more than 11 options and have the form save; however, there is no error message saying that you've hit the limit.

      The limit is defined in CRM/Custom/Form/Field.php: CONST NUM_OPTION = 11;

      This is iterated in a number of for loops. If I check off more than the max options, it doesn't save (the form returns with the checkbox simply not checked, but there is no error message indicating that I've hit a limit).

      The data saves in a few locations, but not in others... for example it doesn't save in civicrm_price_field but it does save to the serialized "membership_types" field related to the contribution page (I can't recall the table specifically, sorry!)

      Why is this limit there, and why is it set to 11 specifically? Is the alternative to use a membership price set?

        Attachments

        1. CRM-13079.patch
          2 kB
          Chris Wells
        2. Screen Shot 2013-07-18 at 9.21.40 AM.PNG
          69 kB
          David Greenberg

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              cwells Chris Wells
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: