Add-ons
  1. Add-ons
  2. CONTRIB-2883

Responses not complete in the course/user report

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.11
    • Fix Version/s: None
    • Component/s: Module: Questionnaire
    • Labels:
      None
    • Environment:
      linux,php.mysql
    • Affected Branches:
      MOODLE_19_STABLE
    • Rank:
      23119

      Description

      Hi

      For not complete responses, when you have the response option set to yes, the course user report display one not complete answer as being one complete answer.

      I feel the need to change this beahaviour :

      In the questionnaire_user_outline function:

      if ($responses = questionnaire_get_user_responses($questionnaire->sid, $user->id)) {
      + $key = array_keys($responses);
      + $key = current($key);
      $n = count($responses);
      if ($n == 1) {
      + if($responses[$key]->complete == 'n')

      { + $result->info = get_string("resumeresponse", "questionnaire"); + }

      else

      { $result->info = $n.' '.get_string("response", "questionnaire"); + }

      }

      In the questionnaire_user_complete:

      foreach ($responses as $response) {
      + if($response->complete=='n')

      { + echo get_string('resumeresponse', 'questionnaire').' <br />'; + }

      else {

        Activity

        Hide
        Mike Churchward added a comment -

        Hi Angelo.

        Is this behaviour the same in M2?

        Show
        Mike Churchward added a comment - Hi Angelo. Is this behaviour the same in M2?

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development