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

Use a context-children-based method to retrieve the list of course blocks

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5
    • 3.5
    • Privacy
    • MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • MDL-61637_master
    • Hide
      1. Create a course (or use an existing one)
      2. Add 2 blocks to the course main page, an HTML block (no need to set a title nor content) and another block
      3. Create a course activity in this same course and add 2 block instances, an HTML block (with title and content this time) and another block
      4. Go to "Site admin > users > privacy and policies > data registry"
      5. Look for the course in the site tree, expand "Blocks" node
      6. Check that all 4 block instances appear there (note that there may be other instances if you reused an existing course)
      Show
      Create a course (or use an existing one) Add 2 blocks to the course main page, an HTML block (no need to set a title nor content) and another block Create a course activity in this same course and add 2 block instances, an HTML block (with title and content this time) and another block Go to "Site admin > users > privacy and policies > data registry" Look for the course in the site tree, expand "Blocks" node Check that all 4 block instances appear there (note that there may be other instances if you reused an existing course)
    • Privacy Sprint 1

    Description

      tool_dataprivacy is currently fetching blocks using get_course_blocks external function, which retrieves blocks instances ready to be displayed, we want access to all block instances regardless of their contents being visible to users.

      Attachments

        Issue Links

          Activity

            People

              dmonllao David Monllaó
              dmonllao David Monllaó
              Adrian Greeve Adrian Greeve
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Andrew Lyons, Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/18