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

when adding new discussion doesn't pass filehash to assessable_uploaded event.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.5
    • Module: Advanced forum
    • None
    • MOODLE_35_STABLE

      when a new discussion is added, hsuforum_trigger_content_uploaded_event is triggered before files are saved into the database so the contenthashes are not included in the event.

      $files = $fs->get_area_files($context->id, 'mod_hsuforum', 'attachment') returns an empty array.

      This does not seem to occur when replying to an existing discussion.

      it looks like the files aren't actually saved until process_file_upload is run in save_discussion()

      the logic should be tidied up so that hsuforum_trigger_content_uploaded_event is only triggered when the post has been saved, and all attachments have been saved into the db.

            Unassigned Unassigned
            danmarsden Dan Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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