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

Undefined variable: i in CRM_Contact_Form_CustomData->preProcess

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 3.4.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Saving multivalue custom group data results in:

      1. Notice: Undefined variable: i in CRM_Contact_Form_CustomData->preProcess() (line 144 of /home/mysite/www/www/sites/all/modules/civicrm/CRM/Contact/Form/CustomData.php

      Solution, edit that line to be:

      for ( $i=0; $i <= $_POST['hidden_custom_group_count'][$this->_groupID]; $i++ ) {

      i.e. I added two characters:

      =0

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              hershel Hershel Robinson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 7 minutes
                7m
                Remaining:
                Remaining Estimate - 7 minutes
                7m
                Logged:
                Time Spent - Not Specified
                Not Specified