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

Upgrade settings not saving

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Add a new user profile field e.g role
      • Perform upgrade - all works fine
      • Change the user profile field shortname from 'role' to 'Role'
      • Perform upgrade and when it reaches the upgrade settings page, it won't save anymore.

      New settings - CAS server etc will be looking for 'field_map_profile_field_role' and in database, mdl_config_plugins table field is 'field_map_profile_field_Role'

      Show
      Add a new user profile field e.g role Perform upgrade - all works fine Change the user profile field shortname from 'role' to 'Role' Perform upgrade and when it reaches the upgrade settings page, it won't save anymore. New settings - CAS server etc will be looking for 'field_map_profile_field_role' and in database, mdl_config_plugins table field is 'field_map_profile_field_Role'
    • Workaround:
      Hide

      Go to User profile fields and change the profile field from 'Role' back to 'role' and save works again.

      Or change from database directly by running following query

      UPDATE `mdl_config_plugins` SET `name` = 'field_updatelocal_profile_field_role' WHERE `name` = 'field_updatelocal_profile_field_Role';
      UPDATE `mdl_config_plugins` SET `name` = 'field_map_profile_field_role' WHERE `name` = 'field_map_profile_field_Role';
      UPDATE `mdl_config_plugins` SET `name` = 'field_updateremote_profile_field_role' WHERE `name` = 'field_updateremote_profile_field_Role';
      UPDATE `mdl_config_plugins` SET `name` = 'field_lock_profile_field_role' WHERE `name` = 'field_lock_profile_field_Role';

      Show
      Go to User profile fields and change the profile field from 'Role' back to 'role' and save works again. Or change from database directly by running following query UPDATE `mdl_config_plugins` SET `name` = 'field_updatelocal_profile_field_role' WHERE `name` = 'field_updatelocal_profile_field_Role'; UPDATE `mdl_config_plugins` SET `name` = 'field_map_profile_field_role' WHERE `name` = 'field_map_profile_field_Role'; UPDATE `mdl_config_plugins` SET `name` = 'field_updateremote_profile_field_role' WHERE `name` = 'field_updateremote_profile_field_Role'; UPDATE `mdl_config_plugins` SET `name` = 'field_lock_profile_field_role' WHERE `name` = 'field_lock_profile_field_Role';
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE

      Description

      After upgrade, when you go to Notification page, it keeps showing New settings - CAS server (SSO), New settings - External database, New settings - LDAP server and New settings - Shibboleth, and it's not possible to save it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              pfranks Enovation Solutions
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: