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

JS error in the form.js: TypeError: names[name].push is not a function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.4, 3.1, 3.2
    • Fix Version/s: 3.0.5, 3.1.1
    • Component/s: Forms Library
    • Labels:
    • Testing Instructions:
      Hide
      1. Merge the appropriate branch from:

        git://github.com/andrewnicols/moodle.git MDL-54778-master-mocha
        git://github.com/andrewnicols/moodle.git MDL-54778-31-mocha
        git://github.com/andrewnicols/moodle.git MDL-54778-30-mocha
        

      2. Run `grunt mocha`
      3. Check through generate coverage file
      4. Full behat run
      5. Smoke test of forms all over moodle (wtih JS console open)
      Show
      Merge the appropriate branch from: git://github.com/andrewnicols/moodle.git MDL-54778-master-mocha git://github.com/andrewnicols/moodle.git MDL-54778-31-mocha git://github.com/andrewnicols/moodle.git MDL-54778-30-mocha Run `grunt mocha` Check through generate coverage file Full behat run Smoke test of forms all over moodle (wtih JS console open)
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-54778-master

      Description

      1. Create a course and manually enrol several students
      2. Go to Course administration>Users>Enrolled users
      3. Filter users by the manual enrolment method
      4. Select a student and select to edit from bulk action menu
      5. Open JS console - there is a JS error on this page

      Discovered while writing behat tests for MDL-31012 - behat fails saying "Javascript code and/or AJAX requests are not ready after 10 seconds. There is a Javascript error or the code is extremely slow. (Exception)"

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Jul/16