Skip to content

[C2] Delete course from course_list.php when course is in sequence doesn't work #6814

@ywarnier

Description

@ywarnier

How to reproduce

  • Create 2 courses
  • Create a resource sequence with those 2 courses in it
  • Go to main/admin/course_list.php
  • Try do delete any of those 2 courses
  • The page refreshes but the course is not deleted and no error message appears
  • Go to one of the courses' home
  • Click "Course maintenance" (cog)
  • Click "Delete this course" and add the course code and confirm
  • An error message appears telling you that the course is included in a sequence and that you need to remove it from there first. This is the desired behaviour.

What to change

Update course_list.php to show the same error message when the course is in a sequence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions