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

customPost profile passes array instead of id to filterUFGroups

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.4.8
    • Fix Version/s: 4.1.3
    • Component/s: CiviCRM Profile
    • Labels:
      None

      Description

      CRM/Core/BAO/UFGroup.php filterUFGroups is getting passed an array instead of an ID for parameter 1 but only on the customPost profile (2nd profile option). Tracked this down to CRM/Event/Form/Register.php function buildQuickForm where

      $this->buildCustom( $this->_values['custom_post_id'] , 'customPost' );

      contains an array instead of an id. For my own fix I replaced that line with the following two lines:

      $custom_post_id = CRM_Utils_Array::value( 0, $this->_values['custom_post_id'], '');
      $this->buildCustom( $custom_post_id , 'customPost' );

      but I anticipate there is some other way this should be solved.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              emilyfrazier Emily Frazier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: