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

In choice, if "Show column for unanswered" is set to no, filter out "not answered yet" lines in downloaded reports

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0.6, 4.1.1
    • 3.5.17, 3.8.8, 3.9.6, 3.10.3, 4.0.5, 4.1
    • Choice
    • MOODLE_310_STABLE, MOODLE_35_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-71506-401
    • MDL-71506-master
    • Hide
      1. As admin, create a course and enrol three students.
      2. As admin, create a choice activity with two options, setting "Results" → "Show column for unanswered" to "no".
      3. As one student select either option in the choice activity.
      4. As admin go to the choice -> View 1 response -> Download in {ODS,Excel,text} format
      5. Verify the file does contain only the single line of that student.
      6. As admin, set the "Results" → "Show column for unanswered" to "yes".
      7. As admin go to the choice -> View 1 response -> Download in {ODS,Excel,text} format
      8. Verify the file does contain the lines of all three students.
      Show
      As admin, create a course and enrol three students. As admin, create a choice activity with two options, setting "Results" → "Show column for unanswered" to "no". As one student select either option in the choice activity. As admin go to the choice -> View 1 response -> Download in {ODS,Excel,text} format Verify the file does contain only the single line of that student. As admin, set the "Results" → "Show column for unanswered" to "yes". As admin go to the choice -> View 1 response -> Download in {ODS,Excel,text} format Verify the file does contain the lines of all three students.

      In the mod "choice" settings page could be present a flag (UNANSWERED_FLAG) to avoid exporting "not answered yet" entries

      while iterating the userlist the flag enable or disable exporting the record:

      (file: mod/choice/report.php)

      (the code must be replicated in all branch: ODS, XLS and TXT)

      I'll try to rephrase. We just ran into this (presumably) too.

      When having a Choice activity with Results: Show column for unanswered: "No", the export still does present entries for unanswered. https://qa.moodledemo.net/mod/choice/view.php?id=14 can demonstrate this.

      WHAT YOU EXPECT:
      Exports do not include "Not answered yet" rows.

      WHAT ACTUALLY HAPPENS:

      Exports do include "Not answered yet" rows.

       

        1. 400.png
          400.png
          487 kB
        2. 401.png
          401.png
          459 kB
        3. image-2023-01-03-11-53-58-090.png
          image-2023-01-03-11-53-58-090.png
          1 kB
        4. Immagine 2021-04-30 141757.png
          Immagine 2021-04-30 141757.png
          39 kB
        5. Master.png
          Master.png
          452 kB

            lucaboesch Luca Bösch
            Obliot Alessandro Muiesan
            Stephan Robotta Stephan Robotta
            Amaia Anabitarte Amaia Anabitarte
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 35 minutes
                1h 35m

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