CRM-13079 Add logic to MembershipBlock formRule to verify that the number of enabled...
authorDave Greenberg <dave@civicrm.org>
Thu, 18 Jul 2013 22:30:11 +0000 (15:30 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 18 Jul 2013 22:30:11 +0000 (15:30 -0700)
commit0c165e1c4fcd85d9445aef098ad72b898a97ecf7
treece5d8503ff32d2448b4dba004fd6b918fe67053c
parent45f0564bd8929420759551b3456c65607b79f8f0
CRM-13079 Add logic to MembershipBlock formRule to verify that the number of enabled membership types is not greater than max allowed in the underlying CRM_Price_Field NUM_OPTION constant. Prevents silent failure. Also bump up the constant to 15 from 11.

----------------------------------------
* CRM-13079: hard limit on number of options for price field; no warning/error
  http://issues.civicrm.org/jira/browse/CRM-13079
CRM/Member/Form/MembershipBlock.php
CRM/Price/Form/Field.php
templates/CRM/Price/Form/Field.tpl
templates/CRM/Price/Form/OptionFields.tpl