Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-47736

Atto reports about restoring blank content

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: HTML Editor (Atto)
    • Labels:
    • Testing Instructions:
      Hide

      Test on all supported browsers (sorry)

      1. Go to the atto settings and set the autosave feature to 5 seconds.
      2. Go to 'My profile' -> 'Blogs' -> 'Add a new entry'.
      3. Write something in the 'Blog entry body' field on multiple lines, then clear the text and wait for 'Draft saved' to appear at the bottom of the editor.
      4. Leave the page.
      5. Go back to the page.
      6. Wait a bit and ensure you do not get the message 'A draft version of this text was automatically restored' at the bottom of the editor.
      7. Write something into the field and wait for it to be saved.
      8. Leave the page.
      9. Go back to the page.
      10. Ensure the draft is restored.
      Show
      Test on all supported browsers (sorry) Go to the atto settings and set the autosave feature to 5 seconds. Go to 'My profile' -> 'Blogs' -> 'Add a new entry'. Write something in the 'Blog entry body' field on multiple lines, then clear the text and wait for 'Draft saved' to appear at the bottom of the editor. Leave the page. Go back to the page. Wait a bit and ensure you do not get the message 'A draft version of this text was automatically restored' at the bottom of the editor. Write something into the field and wait for it to be saved. Leave the page. Go back to the page. Ensure the draft is restored.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-47736_master

      Description

      This happens in more realistic scenarios than the one i'm giving here, but this is one way to reproduce it:

      1. Go atto settings and turn autosave setting to save every 5 seconds
      2. Go to My profile / ▶ Blogs / ▶ Add a new entry
      3. Clear the text, wait 5 seconds for it to be saved
      4. Leave the page
      5. Go back to the page

      Expected results:
      Nothing restored because text was empty

      Actual result:
      Atto says 'draft version was restored'. User wonders what happened to their draft because its blank

      No doubt the text is probably not empty, but has empty <p> or something. But it would be best if we didn't confuse the user.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Marina Glancy
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14