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

Groups: Index page error on first time visit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.4.3
    • 3.4, 3.4.1
    • Groups
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-61525-master
    • Hide
      Setup
      1. Log in as a teacher or admin.
      2. Create a course with users enrolled.
      3. Create one or more groups in that course (you may use the "Auto-create groups" feature)
      4. Open your browser's Developer Tool and switch to the Console tab
      Test
      1. Go to the course's Participants page.
      2. Open the cog menu and click Groups
      3. Confirm that you don't see any JavaScript errors in your browser's developer console.
      4. Try to click on any group.
      5. Confirm that you don't see any JavaScript errors in your browser's developer console.
      6. Confirm that you the members of that group are appropriately shown.
      7. Repeat the test for several times and confirm that you don't see any JS error in your browser's developer console.
      Show
      Setup Log in as a teacher or admin. Create a course with users enrolled. Create one or more groups in that course (you may use the "Auto-create groups" feature) Open your browser's Developer Tool and switch to the Console tab Test Go to the course's Participants page. Open the cog menu and click Groups Confirm that you don't see any JavaScript errors in your browser's developer console. Try to click on any group. Confirm that you don't see any JavaScript errors in your browser's developer console. Confirm that you the members of that group are appropriately shown. Repeat the test for several times and confirm that you don't see any JS error in your browser's developer console.

      Sometimes, the module.js and clientlib.js was not loaded properly and it make the View members of group function not work.

      I struggled to reproduce this in standard Moodle:

      1. Go to qa.moodle.net, and log in as manager.
      2. Open Developer Tool in browser (Ex: Chrome or Firefox) and switch to Console tab
      3. Go to any course (Ex: Activity examples)
      4. Go to Users -> Groups
      5. Check the error log on Console tab
      6. Try to click on Group B (1)

      Expected result: 

      • Javascript will loaded without error
      • When clicked on Group B (1), the members of that group will show

      Actual result:

      • Console tab throw error
      • Javascript was not loaded properly
      • View members not worked

      Reason: In index.mustache file have one part of script called init_index and groupslist and sometime it was called before require->js in index.php

      Pls check attachments for more details

            HuongNV Huong Nguyen
            HuongNV Huong Nguyen
            Marina Glancy Marina Glancy
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m

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