Skip to content

Error when deleting a cohort #32

@seb-vial

Description

@seb-vial

Hello,

An error occurs when trying to delete a cohort from Moodle
Exception : Undefined constant "metadatacontext_cohort\CONTEXT_COHORT"

Following the trace, it appears indeed that this constant is not defined but used in /local/metadata/context/cohort/classes/observer.php

This constant is defined in /local/metadata/context/cohort/classes/context_handler.php. Defining it in the observer file fixes the issue. Is this the best way though ? Would there be consequences ?

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