Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-57209

Notice: Undefined index: options in profile edit page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.2
    • Fix Version/s: 3.1.4
    • Component/s: Forms Library
    • Labels:
    • Testing Instructions:
      Hide
      1. In lib/form/selectgroups.php comment out the line $this->_optGroups[$optgroup]['options'][] = array('text' => $text, 'attr' => $attributes);.
      2. Go to the Profile Page for any user.
      3. Click on the 'Edit Profile' link
      4. Confirm there is no notice.
      Show
      In lib/form/selectgroups.php comment out the line $this->_optGroups [$optgroup] ['options'] [] = array('text' => $text, 'attr' => $attributes); . Go to the Profile Page for any user. Click on the 'Edit Profile' link Confirm there is no notice.
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57209-master

      Description

      This was noticed on a Cloud site and a related fix has been made by Damyon Wiese in MDL-57205

      Notice: Undefined index: options in /var/www/moodle32s/lib/form/selectgroups.php on line 379

      https://github.com/moodle/moodle/blob/master/lib/form/selectgroups.php#L379

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jan/17