-
Type:
Bug
-
Status: OPEN
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 20.0 [Tentative]
-
Fix Version/s: None
-
Component/s: Gradebook
-
Labels:None
-
Test Plan:
I encountered this problem today while testing something unrelated. Unfortunately, I haven't found concrete steps to reproduce as sometimes it works and sometimes it doesn't.
Here's the actions I took:
- set up an external gradebook item (assignments, samigo, etc.)
- go to gradebook, add a comment for a student in the external gradebook item column
- provide some text; Save
- The comment I used was "Where's your work?", perhaps the apostrophe has something to do with the problem, it's repeated in the JavaScript error output (below)
- Result (sometimes):
- The modal dialogue doesn't go away fully, you are left with the title and an 'x' (see screenshot 1)
- after manually closing the dialog, the respective cell in the gradebook doesn't receive the icon indicating there's a comment
- if you click add/edit comment again, you'll see your text
- if you open the browser's console output, you'll see the following JavaScript error:
Wicket.Ajax: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: missing ) after argument list, text: (function(){GbGradeTable.saveNewPrediction('Where's your work?');})();(function(){var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == "undefined" || typeof(win.current) == "undefined") { try { win = window.Wicket.Window; } catch (ignore) { } } if (win && win.current) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); }; try { close(window.parent); } catch (ignore) { close(window); } }})();
If you refresh the gradebook, the icon in the cell appears as it should.
Sometimes it works properly, sometimes it doesn't. I haven't identified what the root cause is, and I'm not sure if this affects 19.x as well.