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

core/modal class variable modalCount is not a number

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 4.3
    • 4.3
    • JavaScript
    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-79198-master
    • Hide
      1. Turn on developer mode. (if using MDK, "mdk run mindev")
      2. Create a course with a few activities
      3. Go to the course homepage as an editing teacher or admin.
      4. Open the JS console and add a debugging breakpoint on the line just after "this.modalCount = Modal.modalCounter++"
      5. Turn on bulk editing
      6. Select an activity and on the sticky footer, click Delete or Move
      7. Inspect the value of modalCount.
      8. Confirm that modalCount is a number.
      9. Close/open more modal instances.
      10. Confirm that modalCount is incrementing.
      Show
      Turn on developer mode. (if using MDK, " mdk run mindev ") Create a course with a few activities Go to the course homepage as an editing teacher or admin. Open the JS console and add a debugging breakpoint on the line just after " this.modalCount = Modal.modalCounter++ " Turn on bulk editing Select an activity and on the sticky footer, click Delete or Move Inspect the value of modalCount. Confirm that modalCount is a number. Close/open more modal instances. Confirm that modalCount is incrementing.

    Description

      To reproduce:

      1. Turn on developer mode. (if using MDK, "mdk run mindev")
      2. Create a course with a few activities
      3. Go to the course homepage as an editing teacher or admin.
      4. Open the JS console and add a debugging breakpoint on the line just after "this.modalCount = this.modalCounter++"
      5. Turn on bulk editing
      6. Select an activity and on the sticky footer, click Delete or Move
      7. Inspect the value of modalCount.
      8. Expected: modalCount is a number.
      9. Actual: It is NaN (not a number)

      Attachments

        Issue Links

          Activity

            People

              jpataleta Jun Pataleta
              jpataleta Jun Pataleta
              Andrew Lyons Andrew Lyons
              Ilya Tregubov Ilya Tregubov
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 9 minutes
                  1h 9m

                  Clockify

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