Closed Bug 1301656 Opened 9 years ago Closed 8 years ago

Option to restore a draft is shown for new page

Categories

(developer.mozilla.org Graveyard :: Editing, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sebo, Assigned: shobson)

Details

(Keywords: in-triage, Whiteboard: [specification][type:bug])

What did you do? ================ Entered a URL for a new article I wanted to create. What happened? ============== Above the empty editor I saw this message: "You have a draft from: 7.9.2016 09:37:01. Restore the draft content. Discard the draft. Enable autosave." Clicking on "Restore the draft content" loaded the contents of a previous article I created lately. What should have happened? ========================== There should no draft be saved when starting to create a new article. Is there anything else we should know? ====================================== I assume the saved draft is from the last page I created, so it was not removed after the page got created.
I think this is a regression based on the changes we made to the save draft functionality because drafts are not discarded on publish anymore, now they wait for publish confirmation and this breaks down if the URL changes between the editing page and the published page.
Keywords: in-triage
This was fixed in mozilla/kuma#4186. Drafts are disabled for new pages - save early!
Assignee: nobody → shobson
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.