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

Autosave Error when editing a DB field with TinyMCE

      When a text field is used in the database, due to autosave an empty field can be filled with the data from another previously edited field.

      Prerequisites:

      1. Create a new database activity.
      2. Use the attached preset and import the two entries from the attachment.

      Steps to reproduce

      1. As Admin go to the database activity.
      2. Edit the first entry. Click into the TinyMCE in the description field hit the enter button.
      3. In the sticky footer click on "Cancel" to discard the changes.
      4. In the list view, check that the second entry has an empty description field.
      5. Open the second entry in edit mode.
      6. After the page is loaded and TinyMCE is initialized, the description field is set with the value from the first entry.

      Expected outcome:

      when the TinyMCE is loaded with the data from the second entry, the field is empty as in view mode, because there is no description set for that entry.

            strobotta Stephan Robotta
            strobotta Stephan Robotta
            Luca Bösch Luca Bösch
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m

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