Skip to content

Module Order reset if lesson updated by Editor #7889

@danjjohnson

Description

@danjjohnson

Steps to Reproduce

  1. Go to a course and set a custom module order (via Course Layout block or Modules > Order Modules)
  2. Log in as a user with the Editor role
  3. Edit any lesson that belongs to that course
  4. Save the lesson
  5. Check the module order on the course - it has been reset to alphabetical order

What I Expected

The custom module order set by the administrator should be preserved when an Editor saves a lesson.

What Happened Instead

The module order for the course is reset to alphabetical order whenever a user with the Editor role saves a lesson belonging to that course. This happens regardless of whether the module order was set via the Course Layout block or the Modules > Order Modules interface.

PHP / WordPress / Sensei LMS version

  • PHP: 8.2.30
  • WordPress: 6.9
  • Sensei LMS: 4.25.2
  • Sensei Pro: 1.24.5

Context / Source

Metadata

Metadata

Assignees

No one assigned

    Labels

    Customer ReportIssues or PRs that were reported via Happiness. Previously known as "Happiness Request".[Status] Needs TriageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions