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

Notice: Undefined index: options in profile edit page

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1, 3.2
    • 3.1.4
    • Forms Library
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_31_STABLE
    • MDL-57209-master
    • 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.

    Description

      This was noticed on a Cloud site and a related fix has been made by damyon 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

              craig@moodle.com Craig R Morton
              craig@moodle.com Craig R Morton
              Mark Nelson Mark Nelson
              David Monllaó David Monllaó
              Rajesh Taneja Rajesh Taneja
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Jan/17