Closed brianhogg closed 2 months ago
At some point an actual draft of the auto draft needs to be saved. Perhaps when the course builder is launched, if it's an auto draft, the course can be saved as an actual draft behind the scenes.
Was supposed to be fixed in 7.6.0, but it seems to still be showing Auto Draft on initial load of the course builder. Going back then going back into the course builder shows New Course as expected.
The issue is the global $post
wasn't reloaded after changing the course title to New Course. PR to fix #2642
Reproduction Steps
Expected Behavior
Course is shown is the course listing, and can be edited.
Actual Behavior
Course is not shown in the course listing and disappears.
Error Messages / Logs
No error messages are shown during the reproduction steps, so the user doesn't realize there's a problem until their course is not able to be found.
Changes show as successfully saved.
The course cannot be found. Going to Courses > Add Course again creates a new course with auto-draft status.