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

TinyMCE autosave reset is aborted on page transition

    XMLWordPrintable

Details

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-76327-master
    • Hide
      1. Edit lib/editor/tiny/plugins/autosave/classes/external/reset_autosave_session.php in your editor
      2. Before the {{$manager = }} call on line 84, add a call:

        sleep(5);
        

      3. Login as admin
      4. Navigate to a course
      5. Turn editing on
      6. Add a new activity or resource
      7. Choose an activity (Forum)
      8. Fill in a name and description
      9. Press "Save and return to course"
      10. Add another new activity of the same time
        1. Confirm that the description was not filled from the autosave
      11. Open the forum you created in the first step
      12. Add a new discussion:
        1. Set the title
        2. Type into the content editor
      13. Without clicking out of the content editor first, go straight from typing some content to clicking on the "Post to forum" button
      14. Afer the page loads press the "Add discussion topic" button
        1. Confirm that the content was not filled from the autosave
      Show
      Edit lib/editor/tiny/plugins/autosave/classes/external/reset_autosave_session.php in your editor Before the {{$manager = }} call on line 84, add a call: sleep(5); Login as admin Navigate to a course Turn editing on Add a new activity or resource Choose an activity (Forum) Fill in a name and description Press "Save and return to course" Add another new activity of the same time Confirm that the description was not filled from the autosave Open the forum you created in the first step Add a new discussion: Set the title Type into the content editor Without clicking out of the content editor first, go straight from typing some content to clicking on the "Post to forum" button Afer the page loads press the "Add discussion topic" button Confirm that the content was not filled from the autosave
    • 10
    • Team Hedgehog Sprint 1.1, Team Hedgehog Sprint 1.2

    Description

      I'm not sure if this behaviour is specific to forums, but was most noticeable there while I've been looking at various follow-ups in the MDL-75071 epic. Reporting here in case it's worth investigating further as to the scope of this problem, and any resolution

      Easiest to describe via reproduction steps:

      1. Create a forum
        • Add a description
      2. Create another forum
        • Description of first forum is autopopulated
      3. Add discussion topic, post to forum
      4. Add another discussion topic
        • Message of first topic is autopopulated

      Testing in fresh install, using Ubuntu/Firefox

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              pholden Paul Holden
              Meirza Meirza
              Ilya Tregubov Ilya Tregubov
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 6 minutes
                  5h 6m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.