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

Erro after upgrade from 3.6 to 3.11 in User profile fields - Social Fields

    XMLWordPrintable

Details

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL-73878-311
    • MDL-73878-master
    • Hide

      Repeat all tests upgrading to 3.11, 4.0 and master versions.

      Upgrade straight to fixed version

      1. Create a new Moodle 3.10 site with some users.
      2. Edit users' profile and add some information to 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields on 'Optionals'.
      3. Login as admin and go to Site administration > Users > User profile fields
      4. Create a new profile category called 'Social data'
      5. Delete 'Other fields' category
      6. Upgrade to the patch (for 3.11, 4.0 or master branch)
      7. Login as admin
      8. Go to users' profile and check the information for 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields on 'Optionals' is shown on 'Social data' section.
      9. Go to Site administration > Users > User profile fields
      10. Confirm 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields are linked to the category created on step 4.

      Fix a wrong upgrading

      1. Create a new Moodle 3.10 site with some users.
      2. Edit users' profile and add some information to 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields on 'Optionals'.
      3. Login as admin and go to Site administration > Users > User profile fields
      4. Create a new profile category called 'Social data'
      5. Delete 'Other fields' category
      6. Upgrade to a Moodle version without the patch (for 3.11, 4.0 or master branch)
      7. Upgrade to the patch (for 3.11, 4.0 or master branch)
      8. Login as admin
      9. Go to users' profile and check the information for 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields on 'Optionals' is shown on 'Social data' section.
      10. Go to Site administration > Users > User profile fields
      11. Confirm 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields are linked to the category created on step 4.
      Show
      Repeat all tests upgrading to 3.11, 4.0 and master versions. Upgrade straight to fixed version Create a new Moodle 3.10 site with some users. Edit users' profile and add some information to 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields on 'Optionals'. Login as admin and go to Site administration > Users > User profile fields Create a new profile category called 'Social data' Delete 'Other fields' category Upgrade to the patch (for 3.11, 4.0 or master branch) Login as admin Go to users' profile and check the information for 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields on 'Optionals' is shown on 'Social data' section. Go to Site administration > Users > User profile fields Confirm 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields are linked to the category created on step 4. Fix a wrong upgrading Create a new Moodle 3.10 site with some users. Edit users' profile and add some information to 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields on 'Optionals'. Login as admin and go to Site administration > Users > User profile fields Create a new profile category called 'Social data' Delete 'Other fields' category Upgrade to a Moodle version without the patch (for 3.11, 4.0 or master branch) Upgrade to the patch (for 3.11, 4.0 or master branch) Login as admin Go to users' profile and check the information for 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields on 'Optionals' is shown on 'Social data' section. Go to Site administration > Users > User profile fields Confirm 'Web page', 'ICQ number', ' Skype ID', 'AIM Id', 'Yahoo ID' and 'MSN ID' fields are linked to the category created on step 4.
    • Moppies Kanban

    Description

      After I upgraded from moodle 3.6 to version 3.11.

      The social profile fields:
      Skype ID
      Yahoo ID
      MSN ID
      Web page

      were created in the mdl_user_info_field table with the category id 1.

      however, category 1 was not created in the database, in the mdl_user_info_category table.

      So they weren't displayed on the /user/profile/index.php admin page

      After manually creating the category the fields were displayed normally.

      I believe there is some bug, which does not create the category in the update script.

      it is worth mentioning that my instances already had custom user profile fields

      Attachments

        Issue Links

          Activity

            People

              amaia Amaia Anabitarte
              murilotimo Murilo Timo
              Ferran Recio Ferran Recio
              Jun Pataleta Jun Pataleta
              Angelia Dela Cruz Angelia Dela Cruz
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/May/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d