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

User Description Field breaks in 2.8.2

    XMLWordPrintable

Details

    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • wip-MDL-48978-master
    • Hide
      1. Goto Site administration -> Plugins -> Authentication -> manual
      2. Lock description field
      3. Go to user X profile
      4. Edit description field
      5. Save user X profile
      6. Login in with user X
      7. Goto Edit user profile
      8. Save user profile
      Show
      Goto Site administration -> Plugins -> Authentication -> manual Lock description field Go to user X profile Edit description field Save user X profile Login in with user X Goto Edit user profile Save user profile

    Description

      Creating this issue is a bit of a mystery for me because it doesn't exist in the moodle QA site, however after going through a diff of our update from 2.8.1+ and 2.8.2, the problem seems to unequivocally be in user/edit_form with a fix from MDL-37704.

      The error that I recieve when i try to update student user preferences

      I was able to reverse the problem by reverting to the 2.8.1+ version of this code in user/edit_form.php:

      if ($field === 'description')

      { + // Hard coded hack for description field. See MDL-37704 for details. + $formfield = 'description_editor'; + }

      else

      { + $formfield = $field; + }

      + if (!$mform->elementExists($formfield))

      { continue; }

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              jjbass jasper boyd
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May, David Woloszyn, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2/Feb/15