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

Web service mod_data_update_entry deletes uploaded files

    XMLWordPrintable

    Details

      Description

      In a database with a textarea field, files can be embedded with the HTML editor. When calling the web service mod_data_update_entry to update an entry with embedded files, the files are deleted even passing the draftid as a parameter.

      The WS ignores this parameter and instead uses a POST parameter sent by the form in Moodle web.

      See https://github.com/moodle/moodle/blob/master/mod/data/field/textarea/field.class.php#L199, $draftitemid = file_get_submitted_draft_itemid('field_'. $this->field->id. '_itemid');

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jleyva Juan Leyva
                Reporter:
                albert.gasset Albert Gasset
                Peer reviewer:
                Dani Palou
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Juan Leyva, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 25 minutes
                  1h 25m