Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-8212

Images in feedback notes not displayed after displaying the form again

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9.1
    • Module: Questionnaire
    • None
    • 2020062301
    • MOODLE_39_STABLE

      In the feedback tabs of advanced settings, you can fill a WYSIWYG field named feedbacknotes.

      If you upload images via the WYSIWYG, it's well dipslayed and still well displayed after saving the feedback.

      But if you go back on the page later, the images are not displayed.

      (I.E go to  questions tabs and go back on the feedback tab)

       

      I found the bug :

      The id (survey id $sdata->sid) used with file_prepare_draft_area function is not the same than the id (course module id $sdata->id) used with file_save_draft_area_files

      https://github.com/PoetOS/moodle-mod_questionnaire/blob/MOODLE_39_STABLE/feedback.php#L75

      https://github.com/PoetOS/moodle-mod_questionnaire/blob/MOODLE_39_STABLE/feedback.php#L106

       

      I think the id to use should survey id.

            mchurch Mike Churchward
            rlemaire Renaud Lemaire
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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