Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-35218 META: Course formats refactoring for 2.4
  3. MDL-35769

Course formats: Add function format_base::default_blocks() to replace config.php

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      The test is aimed to test that nothing is changed:

      Test 1 - creating courses.

      1. Login as course manager (not admin but with capability to create courses)
      2. Create one course of each core format, make sure all default blocks are added.
      3. Add $CFG->defaultblocks_override with the list of blocks there
      4. Create courses, make sure that blocks from format config are ignored
      5. Add $CFG->defaultblocks_topics with the list of blocks there
      6. Create course with 'topics' format, make sure that blocks from format config are ignored

      Test 2 - creating moodle site

      1. Create fresh installation of moodle site
      2. Make sure that default blocks are added to the front page: see code of function blocks_get_default_site_course_blocks()
      Show
      The test is aimed to test that nothing is changed: Test 1 - creating courses. Login as course manager (not admin but with capability to create courses) Create one course of each core format, make sure all default blocks are added. Add $CFG->defaultblocks_override with the list of blocks there Create courses, make sure that blocks from format config are ignored Add $CFG->defaultblocks_topics with the list of blocks there Create course with 'topics' format, make sure that blocks from format config are ignored Test 2 - creating moodle site Create fresh installation of moodle site Make sure that default blocks are added to the front page: see code of function blocks_get_default_site_course_blocks()
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull Master Branch:
      wip-MDL-35769-master

      Description

      at the moment default blocks for the course format are defined in config.php with $format['defaultblocks']
      should be moved to function format_base::default_blocks()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Integrator:
              Dan Poltawski
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/12