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

TypeError on selecting access restriction condition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.4
    • Restrict access
    • None
    • MOODLE_404_STABLE

      I can't see that this breaks anything but it doesn't look right to me.

      Steps to reproduce issue

      1. Create a course and go to the course page.
      2. Enable editing mode.
      3. Click Add an activity or resource.
      4. Select Assignment (this issue doesn't appear to be specific to this).
      5. Expand Restrict access and click Add restriction....
      6. Click Date.

      Expected results

      No errors in the browser console.

      Actual results

      Error in the browser console:

      yui_combo.php?rollup…dlesimple-min.js:22 Uncaught 
      TypeError: Cannot read properties of null (reading 'className')
          at Object.hasClass (yui_combo.php?rollup…mple-min.js:22:2150)
          at c.<computed> [as hasClass] (yui_combo.php?rollup…mple-min.js:28:1400)
          at i.centerDialogue (yui_combo.php?m/1724…/form-min.js:1:7493)
          at i.centerDialogOnVisible (yui_combo.php?m/1724…/form-min.js:1:8145)
          at ResizeObserver.<anonymous> (yui_combo.php?m/1724…/form-min.js:1:7906)
      hasClass    @    yui_combo.php?rollup…dlesimple-min.js:22
      c.<computed>    @    yui_combo.php?rollup…dlesimple-min.js:28
      centerDialogue    @    yui_combo.php?m/1724…/form/form-min.js:1
      centerDialogOnVisible    @    yui_combo.php?m/1724…/form/form-min.js:1
      (anonymous)    @    yui_combo.php?m/1724…/form/form-min.js:1

      Above message is from Chromium 127.0.6533.99, a slightly different TypeError is seen in Firefox 129.0.

            Unassigned Unassigned
            leonstr Leon Stringer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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