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

mod_wiki: Form gets submitted and saved on Comments when clicking Upload & delete, Preview, or Cancel using Creole or NWiki format

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.4.5, 3.5.2, 3.6
    • None
    • Wiki (2.x)
    • MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE

    Description

      On the Comments tab add/edit functionality, clicking Upload & delete, Preview, or Cancel button always submits the form and saves the contents.

      This issue can be replicated reliably using (3.6dev+ (Build: 20181031). Please see steps below:
      1. Create a course.
      2. Turn editing on.
      3. Add a Wiki activity and create your first page and save (creole or nwiki format).
      4. Go to the Wiki activity, and click the "Comments" tab.
      5. Click the "Add comment" link.
      6. Type a content in the text-area.
      7. Attach a file in the "Attachments" area.
      8. Click "Upload & Delete".
      Result: The form will be submitted and the contents of the text area are saved.
      9. Repeat steps 5, 6 (change the contents of the comment), and 7, then click "Preview".
      Result: The form will be submitted and the contents of the text area are saved.
      10. Repeat steps 5, 6 (change the contents of the comment), and 7, then click "Cancel".
      Result: The form will be submitted and the contents of the text area are saved.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jebarvia Joshua Ebarvia
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: