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

Web service mod_data_update_entry deletes uploaded files

XMLWordPrintable

      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');

            jleyva Juan Leyva
            albert.gasset Albert Gasset
            Dani Palou Dani Palou
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

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

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