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

Course management page hits a Firefox JS max recursion error.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.5.1
    • JavaScript
    • MOODLE_25_STABLE

      The course management page when viewed in Firefox (23.0) breaks due to a max recursion error that I tracked down to coming from the JS formautosumbit module.

      too much recursion
      http://localhost/integration/lib/yuilib/3.9.1/build/simpleyui/simpleyui.js
      Line 11497
      

      I've experienced this on a site with 200 course categories, which are all displayed at once on the course/manage.php
      Thats 200 autosubmit select boxes associated with moving categories, each with 200 options.
      I find that the select boxes at the top work as expected, however the ones at the bottom submit as soon as you click on them and when stepping through the JS I find that the required data attributes are not set.

      I don't think this issue should focus on fixing the management page, Marina's tweaked it nicely with MDL-41127 and with MDL-31830 I'll be replacing it completely.
      I think this issue should improve the autosubmit module so that it doesn't need to recurse all select boxes during initialisation.
      It'd also be ideal if all autosubmits were handled with a single delegation.

            Unassigned Unassigned
            samhemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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