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

Reloading a form page leads to editor fields cleaned by the draft feature

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Go to edit my profile page.
      2. Make sure the profile description field loads an Atto editor
      3. Enter some text in the profile description
      4. Press "Update profile" button
      5. Go back to edit my profile page
      6. Wait for the page to finish loading
      7. Check that the profile description field is not empty and contains the new text
      8. Reload the page without submitting the form (control R)
      9. Wait for the page to finish loading
      10. Check that the profile description field is not empty and contains the new text
      Show
      Go to edit my profile page. Make sure the profile description field loads an Atto editor Enter some text in the profile description Press "Update profile" button Go back to edit my profile page Wait for the page to finish loading Check that the profile description field is not empty and contains the new text Reload the page without submitting the form (control R) Wait for the page to finish loading Check that the profile description field is not empty and contains the new text
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-48006-master

      Description

      While testing MDL-47892 and creating various rules, at some point the forms started to behave strangely, with the "a draf version of this text was automatically restored" appearing all the time the form was visited.

      After a bit of trial and error, I think these steps reproduce the problem happening on any form/browser/database (I've confirmed it both in the course edit and forum post edit forms, with both oracle and mysql and with safari and firefox).

      1. Edit any form having editor fields. Fill them and save the form.
      2. Edit that form again. The editor fields are there, correctly.
      3. Reload the form page (F5). The "draft" message is shown and contents are erased.
      4. From that point, every time you visit that form page the "draft" message is shown and contents erased (no need to reload anymore).

      That is it, ciao

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

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