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

h5p emits debug warnings when fetching content by pluginfile url

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_39_STABLE

      Description

      In `h5p/classes/api.php:get_content_from_pluginfile_url()`, the h5p record is loaded using only the pathnamehash as a parameter. This field is not unique in the {h5p} table - so any content with pathnamehashes that exist multiple times in the table results in a "more than one record found" debug warning being emitted when editing the content in the contentbank.

      This function is also used to determine which {h5p} records to delete when deleting content.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            aolley Adam Olley
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: