CRM-12272 Fixed logic so that form rule ensures that EITHER custom_pre OR custom_post...
authorDave Greenberg <dave@civicrm.org>
Mon, 15 Apr 2013 23:53:13 +0000 (16:53 -0700)
committerDave Greenberg <dave@civicrm.org>
Mon, 15 Apr 2013 23:53:13 +0000 (16:53 -0700)
commitdbeb7efb5af435a9863f31dfb80c67bb92434f96
treefe616701b6c1c508942b1f6bb74533efe8b3d456
parentd046cbc67615303c0ce66f153d854319d6dbcfd3
CRM-12272 Fixed logic so that form rule ensures that EITHER custom_pre OR custom_post is an individual profile. Previously the code was throwing form rule error when custom_post was NOT type individual even though custom_pre was. However, the complete fix is to check for first + last name profile fields when Allow multiple registrations from same email is checked. Will file issue for that for 4.4.

----------------------------------------
* CRM-12272: Validation for required profile fields in event registration ignores 'extra' profiles
  http://issues.civicrm.org/jira/browse/CRM-12272
CRM/Event/Form/ManageEvent/Registration.php