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

Activity results block configuration doesn't select default activity id.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.9.3
    • 2.9.2, 3.0
    • Blocks
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_29_STABLE
    • MDL-51905-master
    • Hide

      This test requires a course containing at least 2 activities which use grades, such as forum and glossary (referred to in this test as activities A and B) and another activity that doesn't use grades, such as page

      1. Log in as a teacher and turn editing on in the course
      2. Go to activity A and add the Activity results block to the page
      3. Click the link to configure the block and check that by default, the block will display results from activity A
      4. Click the 'Save changes' button and check that the block displays the results correctly
      5. Repeat steps 2 - 4, adding the Activity results block to different pages in the course and configuring it to display results from activities A or B
      6. Go to activity C, and add the activity results block
      7. Check that no errors or warnings are displayed. One of the gradable activities should be selected.
      8. Go to the course, and add the activity results block
      9. Check that no errors or warnings are displayed. One of the gradable activities should be selected.
      Show
      This test requires a course containing at least 2 activities which use grades, such as forum and glossary (referred to in this test as activities A and B) and another activity that doesn't use grades, such as page Log in as a teacher and turn editing on in the course Go to activity A and add the Activity results block to the page Click the link to configure the block and check that by default, the block will display results from activity A Click the 'Save changes' button and check that the block displays the results correctly Repeat steps 2 - 4, adding the Activity results block to different pages in the course and configuring it to display results from activities A or B Go to activity C, and add the activity results block Check that no errors or warnings are displayed. One of the gradable activities should be selected. Go to the course, and add the activity results block Check that no errors or warnings are displayed. One of the gradable activities should be selected.

      While testing MDLQA-8652, it was observed that "Activity results" block when added to a module doesn't select that activity by default. Seems block_activity_results::get_owning_activity() is broken.

            johno John Okely
            rajeshtaneja Rajesh Taneja
            Jun Pataleta Jun Pataleta
            Andrew Lyons Andrew Lyons
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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