Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.7, 2.3, 2.4
    • Fix Version/s: 2.4
    • Component/s: Gradebook
    • Labels:
    • Environment:
      LAMP
    • Database:
      Any
    • Testing Instructions:
      Hide

      Test pre-requisites

      • 4 user custom fields as follow: firstname, foo, bar, foobar
      • User A is a teacher with capability course:viewhiddenuserfields
      • User B is a teacher without capability course:viewhiddenuserfields
      • Some students with custom fields filled (set firstname to something different than the user firstname)
      • Set setting grade_export_userprofilefields to its default value, but remove 'email' and add 'password,idontexist'
      • Set setting grade_export_customprofilefields to 'foo,bar,firstname'
      • Set setting $CFG->hiddenuserfields to 'bar,lastname' in your config file
      • Have a few grades on a few activities for the students

      Test 1

      1. As user A go to the gradebook
      2. Export the grades to plain text file
      3. In the preview, make sure that:

      • password, idontexist, email DO NOT appear
      • foo, bar, lastname appear
      • firstname appears TWICE with different values

      4. Export the file, and make sure

      • password, idontexist, email DO NOT appear
      • foo, bar, lastname appear
      • firstname appears TWICE with different values

      5. Repeat steps exporting to XLS and ODS.

      Test 2

      1. As user B go to the gradebook
      2. Export the grades to plain text file
      3. In the preview, make sure that:

      • password, idontexist, email, lastname, bar DO NOT appear
      • foo appears
      • firstname appears TWICE with different values

      4. Export the file, and make sure

      • password, idontexist, email, lastname, bar DO NOT appear
      • foo appears
      • firstname appears TWICE with different values

      5. Repeat steps exporting to XLS and ODS.

      Show
      Test pre-requisites 4 user custom fields as follow: firstname, foo, bar, foobar User A is a teacher with capability course:viewhiddenuserfields User B is a teacher without capability course:viewhiddenuserfields Some students with custom fields filled (set firstname to something different than the user firstname) Set setting grade_export_userprofilefields to its default value, but remove 'email' and add 'password,idontexist' Set setting grade_export_customprofilefields to 'foo,bar,firstname' Set setting $CFG->hiddenuserfields to 'bar,lastname' in your config file Have a few grades on a few activities for the students Test 1 1. As user A go to the gradebook 2. Export the grades to plain text file 3. In the preview, make sure that: password, idontexist, email DO NOT appear foo, bar, lastname appear firstname appears TWICE with different values 4. Export the file, and make sure password, idontexist, email DO NOT appear foo, bar, lastname appear firstname appears TWICE with different values 5. Repeat steps exporting to XLS and ODS. Test 2 1. As user B go to the gradebook 2. Export the grades to plain text file 3. In the preview, make sure that: password, idontexist, email, lastname, bar DO NOT appear foo appears firstname appears TWICE with different values 4. Export the file, and make sure password, idontexist, email, lastname, bar DO NOT appear foo appears firstname appears TWICE with different values 5. Repeat steps exporting to XLS and ODS.
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-21572-master

      Description

      At present, GB allows teacher or admin to export data with grade items and following user related fields: firstname, surname, ID, institution, department and email. It would be useful to be able to export data from other profile fields including city/town and country. The default export contains optional profile fields, yet omits mandatory fields. thank you.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  9 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    3/Dec/12