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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.2, 3.0
    • Fix Version/s: 2.9.3
    • Component/s: Blocks
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51905-master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Nov/15