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

Survey and Wiki modules do not report completion information

    Details

    • Testing Instructions:
      Hide

      0. Enable completion tracking at site level and for a test course.
      1. On the test course, create a wiki and a survey. Set both to 'Mark complete automatically when conditions are met' and tick the 'Require view' condition.
      2. Turn editing off and look at the course. Observe that the two activities are marked as not completed (blank icon with no tickbox).
      3. Click into each activity in turn. In the case of the wiki, create the first page and put some content in and save it. (There needs to be a page in order for it to be counted as 'viewed'.) You don't need to do anything in the survey.
      4. Look at the course again.

      EXPECTED RESULT:
      Both activities should now display a tick mark alongside, indicating that they have been completed because you viewed them.

      Show
      0. Enable completion tracking at site level and for a test course. 1. On the test course, create a wiki and a survey. Set both to 'Mark complete automatically when conditions are met' and tick the 'Require view' condition. 2. Turn editing off and look at the course. Observe that the two activities are marked as not completed (blank icon with no tickbox). 3. Click into each activity in turn. In the case of the wiki, create the first page and put some content in and save it. (There needs to be a page in order for it to be counted as 'viewed'.) You don't need to do anything in the survey. 4. Look at the course again. EXPECTED RESULT: Both activities should now display a tick mark alongside, indicating that they have been completed because you viewed them.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull Master Branch:
      MDL-27491-master

      Description

      Survey and wiki modules are not integrated with the completion engine. They at least need to tell the completion engine when they are viewed.

      This code is found in other modules, but not in wikis and surveys:

      $completion = new completion_info($course);
      $completion->set_module_viewed($cm);

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Oct/11