Skip to content

base.zip / install.xml assumes the contextid for the systemcontext = 1 in all moodle installations #59

Description

@NJahreis

Describe the bug
base.zip / install.xml assumes the contextid for the systemcontext = 1 in all moodle installations leading to a broken plugin installation and display errors

To Reproduce
Steps to reproduce the behavior:

  1. Have a moodle installation where the contextid for the systemcontext is not 1 (hard part ;) )
  2. Install the plugin.
  3. Open the preview all page: YOURMOODLE/lib/editor/tiny/plugins/elements/previewall.php
  4. The pluginfile.php paths for all images loaded during installtion are broken.

Screenshots

Image

Additional context
I assume (but have not tested it) that the behaviour would be the same then importing elements from a moodle with systemcontext id 1 into a system with a different systemcontext id and vice versa.

Not sure if this actually needs to be fixed at a high priority as it should only affect very few users (and can be fixed by modifying the database) but I think opening the issue for reference does not hurt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions