Moodle
  1. Moodle
  2. MDL-9666

choice tally not available for teacher or admin

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.3
    • Fix Version/s: 1.8.5, 1.9
    • Component/s: Choice
    • Labels:
      None
    • Environment:
      WIMP, details unknown but probably irrelevant for this issue
    • Database:
      Any
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Rank:
      29502

      Description

      When you create and use a choice, no totals are reported for the teacher view or the admin view. To get the count of how many students chose each item, I had to make the choice results available to the students and then turn the student view on to get the total. My other option was, of course, to count each response by tapping the screen! (which I did, but this would not work with choices returning several hundred possible responses).

      If the summary results can be displayed to students, then they should be displayed to teachers and admins as well. The export of the results is also not very helpful as there is no way to count them. All the responses are simply listed in a single column, so it requires considerable effort to total up the results.

      I guess this is a bug report (lack of totals on admin and teacher view) and also an improvement request (make the export more useful). Thank you!

      atw

        Activity

        Hide
        Dan Marsden added a comment -

        Hi atw,

        good point. - here's a "quick patch" - just displays the number at the bottom.

        find this in mod/choice/lib.php around line 452:

        if ($choice->limitanswers && !$optionid==0)

        { echo get_string("taken", "choice").":"; echo $countans; echo "<br>"; echo get_string("limit", "choice").":"; $choice_option = get_record("choice_options", "id", $optionid); echo $choice_option->maxanswers; }

        replace with this:
        if ($choice->limitanswers && !$optionid==0)

        { echo get_string("taken", "choice").":"; echo $countans; echo "<br>"; echo get_string("limit", "choice").":"; $choice_option = get_record("choice_options", "id", $optionid); echo $choice_option->maxanswers; }

        else

        { echo $countans; }

        I will try and commit something similar to this later this week - I'm stuck in peoplesoft training over the next few weeks and using a different machine at the moment, so it might be a while....

        Dan

        Show
        Dan Marsden added a comment - Hi atw, good point. - here's a "quick patch" - just displays the number at the bottom. find this in mod/choice/lib.php around line 452: if ($choice->limitanswers && !$optionid==0) { echo get_string("taken", "choice").":"; echo $countans; echo "<br>"; echo get_string("limit", "choice").":"; $choice_option = get_record("choice_options", "id", $optionid); echo $choice_option->maxanswers; } replace with this: if ($choice->limitanswers && !$optionid==0) { echo get_string("taken", "choice").":"; echo $countans; echo "<br>"; echo get_string("limit", "choice").":"; $choice_option = get_record("choice_options", "id", $optionid); echo $choice_option->maxanswers; } else { echo $countans; } I will try and commit something similar to this later this week - I'm stuck in peoplesoft training over the next few weeks and using a different machine at the moment, so it might be a while.... Dan
        Hide
        Dan Marsden added a comment -

        fixed in 1.9 and HEAD - can you please test and let me know?

        thanks!

        Dan

        Show
        Dan Marsden added a comment - fixed in 1.9 and HEAD - can you please test and let me know? thanks! Dan
        Hide
        Dan Marsden added a comment -

        fix now in 1.8Stable too.

        Show
        Dan Marsden added a comment - fix now in 1.8Stable too.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: