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

Javascript Filepicker breaks in database module under certain conditions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.4.1
    • Filepicker
    • MOODLE_404_STABLE

      My problem is exactly the same as describe in this old issue  MDL-46500, but with moodle version 4.4.1

      The javascript error is : "filemanager is null"

      In files/renderer.php, function fm_print_generallayout is called twice (for file1 and file2), generating two client_id

      In the rendered html file, only one filemanager is present, so the code at the end of lib/form/filemanager.js :

       
      var filemanager = Y.one('#filemanager-'+options.client_id);
      

      stop on error "filemanager is null" for the filemanager for file1 which is not include in the template.

            Unassigned Unassigned
            blink38 Matthieu MARC
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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