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

It should not be possible to add the course completion blocks to the front page

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.4
    • 3.2
    • Blocks, Course completion
    • MOODLE_30_STABLE
    • MOODLE_32_STABLE
    • MDL-54563-master
    • Hide

      Before Applying the patch:

      1. Add the course completion status block to the front page
      2. Add the self completion block to the front page
        Apply the patch
      3. Visit the front page and verify there aren't any errors
      4. Remove the course completion block from the frontpage
      5. Remove the self completion block from the front page
      6. Verify that you cannot re-add either block to the front page
      7. Navigate to a course
      8. Verify you can add the course completion and self completion blocks to the course page
      9. Run the behat tests from MDL-54130
      Show
      Before Applying the patch: Add the course completion status block to the front page Add the self completion block to the front page Apply the patch Visit the front page and verify there aren't any errors Remove the course completion block from the frontpage Remove the self completion block from the front page Verify that you cannot re-add either block to the front page Navigate to a course Verify you can add the course completion and self completion blocks to the course page Run the behat tests from MDL-54130

    Description

      While working on MDL-54130 I found that it was possible to add both the course completion and self completion blocks to the site frontpage. When added in this fashion, the blocks display "Completion is not enabled for this course" which suggests that it is possible to configure course completion in this context. (If you force the block to display on all pages on the site, you get this message on every page that is not part of a course)

      Since it is not possible to configure course completion on the front page or any context that is not a course, these blocks to should be limited to course pages only.

      Attachments

        Issue Links

          Activity

            People

              sbourget Stephen Bourget
              sbourget Stephen Bourget
              cameron1729 cameron1729
              Dan Poltawski Dan Poltawski
              Jake Dallimore Jake Dallimore
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5/Dec/16