sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Published Question reverts back to being draft

Open adarshakshat opened this issue 1 year ago • 2 comments

I encountered issue first time on live site then I reproduced the error in a new localwp instance. On local instance I wasnt getting any missing js error in console, But I did get them in my production site. Below is console screenshot of edit question page. Screenshot 2024-04-29 at 1 10 30 PM

Steps to reproduce

  1. Go to Sensei LMS -> Questions.
  2. Create a question and publish it. Skip this step if you already have a question published.
  3. Open the question in the editor.
  4. Modify question content and click "Update"
  5. Notification "Post is reverted to draft" appeared.

What I Expected

Question to be updated without change of its status.

What Happened Instead

Question reverted to draft.

PHP / WordPress / Sensei LMS version

PHP 8.1, WordPress 6.5.2

Browser / OS version

Safari

Screenshot / Video

Attached

https://github.com/Automattic/sensei/assets/32351343/d71f9ee7-7c12-4c42-8988-4856265b197f

Context / Source

adarshakshat avatar Apr 29 '24 07:04 adarshakshat