Skip to content

Show when course is meta parent or child #21

@mwithheld

Description

@mwithheld

If a course is an enrollment meta parent or child, admins need to consider that the course is empty because it's used solely for enrollments, and so admins may not want to delete them. E.g. child course collects enrolments, parent course is where students see the content.

I suggest adding flags like the 'MT' flag: X for meta, or XP and XC for meta parent and meta child.
And also adding the ability to filter those out on a search.

A course is a meta parent if it has more than one result from:
SELECT count(*)
FROM m_enrol e
WHERE enrol='meta'
AND e.courseid=[course id]

A course is a meta child if it has one or more results from:
SELECT count(*)
FROM m_enrol e
WHERE enrol='meta'
AND customint1=[course id]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions