Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3162

The index view logic is problematic, hiddening valid questionnaires and allowing view of templates.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.11, 1.9.12, 2.0, 2.0.1, 2.0.2, 2.0.3
    • Fix Version/s: 1.9.12, 2.0, 2.1
    • Component/s: Module: Questionnaire
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE

      Description

      In the file: index.php
      line 47 is as follows(in 1.9.x code, and similarly on 2.x):
      $realm = get_field('questionnaire_survey', 'realm', 'id', $questionnaire->id);
      which causes this problems, since it should be:
      $realm = get_field('questionnaire_survey', 'realm', 'id', $questionnaire->sid);

      best regards
      --dhg<at>atarplpl.co.il

        Attachments

          Activity

            People

            Assignee:
            rezeau Joseph Rézeau
            Reporter:
            dhg David Hai Gootvilig
            Participants:
            Component watchers:
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10