Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-41620

19x - rubric icon displays beside assignment when there is no rubric attached

    XMLWordPrintable

    Details

    • 19 status:
      Verified
    • Test Plan:
      Hide

      Instructor: In a site that does not have the rubrics tool added, add an assignment

      As the student:

      1. Open the browser console
      2. Click on Assignments - currently the rubric icon will display beside the assignment and there is an error in the browser console
      3. Click to open the assignment - currently you will see an error in the browser console

      Expected behavior:

      The rubric icon should not display when there is no rubric attached 

      There should be no console errors regarding rubrics when there is no rubric attached

       

      Show
      Instructor: In a site that does not have the rubrics tool added, add an assignment As the student: Open the browser console Click on Assignments - currently the rubric icon will display beside the assignment and there is an error in the browser console Click to open the assignment - currently you will see an error in the browser console Expected behavior: The rubric icon should not display when there is no rubric attached  There should be no console errors regarding rubrics when there is no rubric attached  

      Description

      It's possible that the fix for SAK-41619 (trunk) may fix this issue.

      On 19x, whether the rubric tool is added to the site or not, any assignment without a rubric will still display the rubric icon beside the assignment name for the student.

      There are also browser console errors when the student clicks on Assignments, and then again when the student opens the assignment.

      Clicking on the icon beside the assignment title displays an 'x' but nothing else (since there is no rubric). The user cannot do anything else until they click the 'x' to close the invisible rubric.

      Edge: 0: Unable to get property 'parameters' of undefined or null reference
      sakai-rubric-student-button.js (64,6)

      FF: TypeError: association is undefined[Learn More] sakai-rubric-student-button.js:65:7

      Chrome: sakai-rubric-student-button.js?version=16f63519:65 Uncaught (in promise) TypeError: Cannot read property 'parameters' of undefined
      at sakai-rubric-student-button.js?version=16f63519:65
      (anonymous) @ sakai-rubric-student-button.js?version=16f63519:65
      Promise.then (async)
      setHidden @ sakai-rubric-student-button.js?version=16f63519:62
      attributeChangedCallback @ sakai-rubric-student-button.js?version=16f63519:34
      (anonymous) @ sakai-rubric-student-button.js?version=16f63519:70

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  a.fish@lancaster.ac.uk Adrian Fish
                  Reporter:
                  agschmidt Andrea Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code