Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching Course Builder after clicking Add Course results in Auto Draft course that disappears #2606

Closed
4 tasks done
brianhogg opened this issue Feb 26, 2024 · 3 comments
Closed
4 tasks done
Assignees
Labels
Severity: Normal Status: Has PR This issue has an open pull request Type: Bug Bugs and errors

Comments

@brianhogg
Copy link
Contributor

brianhogg commented Feb 26, 2024

Reproduction Steps

  1. Click Courses > Add Course
  2. Click Launch Course Builder
  3. Observe title "Auto Draft", add a Section and Lessons, and edit the Title to "Testing Edit" and add a section
  4. Click Save Changes
  5. Return to Courses listing

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.

Captura de pantalla 2024-02-26 a las 3 14 50 p  m Changes show as successfully saved. Captura de pantalla 2024-02-26 a las 3 15 42 p  m The course cannot be found. Going to Courses > Add Course again creates a new course with auto-draft status.
  • Include any relevant error messages or log files
<!-- Paste error logs / backtraces below this line -->

This issue has be recreated:

  • Locally
  • On a staging site
  • On a production website
  • With only LifterLMS and a default theme
@ideadude ideadude self-assigned this Feb 26, 2024
@brianhogg
Copy link
Contributor Author

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.

@brianhogg
Copy link
Contributor Author

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.

@brianhogg
Copy link
Contributor Author

The issue is the global $post wasn't reloaded after changing the course title to New Course. PR to fix #2642

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Severity: Normal Status: Has PR This issue has an open pull request Type: Bug Bugs and errors
Projects
Status: Done
Development

No branches or pull requests

2 participants