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

Upgrade is creating default blocks with parentcontextid set to SITEID

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Blocks
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Hi Petr,

      Pretty sure that creating the default my-index blocks in upgrade using the SITEID as the parentcontextid is incorrect.
      I've commit a fix now but could you please confirm that for me and revert is I've got it wrong.

      Also, this has led to these default blocks being created with the wrong parentcontextid's after the upgrade.
      This resulted in warnings during the upgrade.

      What would be the best plan of attack to cleaning this up/correcting it do you think?
      On moodle.org SITEID !== SYSCONTEXTID.

      Cheers
      Sam

        Attachments

          Activity

            People

            • Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              samhemelryk Sam Hemelryk
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10