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

Multiselect configuration is not exported correctly by site admin presets

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-78980-401
    • Hide

      Note: both export and import require brand new sites, so it's easier to determine the expected configuration

      Setup

      1. Create a brand new site to export from
      2. Log in as admin
      3. Navigate to Plugins > Search > Manage global search in site administration
      4. Set searchteacherroles to:
        • Manager
        • Teacher
        • Student
      5. Save changes
      6. Navigate to Users > Permissions > User policies in site administration
      7. Set hiddenuserfields to:
        • Country
        • Timezone
      8. Set showuseridentity to:
        • ID number
        • Email address
        • Department
      9. Save changes

      Export preset

      1. Navigate to Site admin presets in site administration
      2. Press Create preset
        • Name: My preset
      3. Press Create preset to create it
      4. Press Actions > Download
      5. View the downloaded XML
      6. Confirm <searchteacherroles> contains "1,3,5"
      7. Confirm <hiddenuserfields> contains "country,timezone"
      8. Confirm <showuseridentity> contains "idnumber,email,department"

      Import preset

      1. Create another brand new site to import to
      2. Log in as admin
      3. Navigate to Site admin presets in site administration
      4. Press Import preset
      5. Upload the file you exported from the first site
      6. Press Import
      7. Confirm the Setting changes lists the following:
        Setting name Plugin Current value New value
        Hide user fields core   Country, Timezone
        Teacher roles core   Manager, Teacher, Student
        Show user identity core Email address ID number, Email address, Department
      8. Press Apply
      9. Press Continue
      10. Navigate to Plugins > Search > Manage global search in site administration
      11. Confirm that searchteacherroles is set to:
        • Manager
        • Teacher
        • Student
      12. Navigate to Users > Permissions > User policies in site administration
      13. Confirm that hiddenuserfields is set to:
        • Country
        • Timezone
      14. Confirm that showuseridentity is set to:
        • ID number
        • Email address
        • Department
      Show
      Note: both export and import require brand new sites, so it's easier to determine the expected configuration Setup Create a brand new site to export from Log in as admin Navigate to Plugins > Search > Manage global search in site administration Set searchteacherroles to: Manager Teacher Student Save changes Navigate to Users > Permissions > User policies in site administration Set hiddenuserfields to: Country Timezone Set showuseridentity to: ID number Email address Department Save changes Export preset Navigate to Site admin presets in site administration Press Create preset Name: My preset Press Create preset to create it Press Actions > Download View the downloaded XML Confirm <searchteacherroles> contains "1,3,5" Confirm <hiddenuserfields> contains "country,timezone" Confirm <showuseridentity> contains "idnumber,email,department" Import preset Create another brand new site to import to Log in as admin Navigate to Site admin presets in site administration Press Import preset Upload the file you exported from the first site Press Import Confirm the Setting changes lists the following: Setting name Plugin Current value New value Hide user fields core   Country, Timezone Teacher roles core   Manager, Teacher, Student Show user identity core Email address ID number, Email address, Department Press Apply Press Continue Navigate to Plugins > Search > Manage global search in site administration Confirm that searchteacherroles is set to: Manager Teacher Student Navigate to Users > Permissions > User policies in site administration Confirm that hiddenuserfields is set to: Country Timezone Confirm that showuseridentity is set to: ID number Email address Department

      Steps to reproduce:

      • Select multiple checkboxes under Admin > Users > User Policies > Show user identity `showuseridentity` e.g. idnumber, email
      • Create and download an admin preset
      • Only one (the first one selected in the list of checkboxes?) value is exported, in the XML there's only one string
      • If you import and apply the preset, only one option is selected

      Other presets with multiple values don't seem to have this problem.

            pholden Paul Holden
            ephetteplace Eric Phetteplace
            Andrew Lyons Andrew Lyons
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 10 minutes
                2h 10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.