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

Adding current employer to a profile generates undefined index error

    Details

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

      Description

      After adding the field, I get:

      Notice: Undefined index: current_employer in CRM_UF_Form_Field->postProcess() (line 666 of /home/jamie/hobo/sites/civicrm/4/sites/all/modules/civicrm/CRM/UF/Form/Field.php).

      The line in question is:

      $name = $this->_selectFields[$params['field_name'][1]];

      The friendly name of the field can easily be derived from params['field_name'][1] but I'm not sure if the absence of current_employer in the $this->_selectFields array is cause for a bigger concern.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              jamie Jamie McClelland
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: