From: Mike G. v. a. <we...@ma...> - 2009-09-30 14:39:41
|
Log Message: ----------- Corrects bug (uncovered by newer versions of CGI.pm after version 3.29 and before 3.42) which defaultedstudents to "guests" in the permission popup menu used for editing the student record. It showed uponly for student because there default value was 0 -- which can be treated ambiguously -- as opposed to2 or 10 which is not. Adding the override switch forces the default value generated in the perl code to override other default values for the popupmenu and provides the expected behavior. This should fix the bug where students were mysteriously reassigned as guests and lost their "submit answer" buttons. sites with older versions of CGI.pm will not have observed this problem. Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator/Instructor: UserList.pm Revision Data ------------- Index: UserList.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/UserList.pm,v retrieving revision 1.91.2.1 retrieving revision 1.91.2.1.2.1 diff -Llib/WeBWorK/ContentGenerator/Instructor/UserList.pm -Llib/WeBWorK/ContentGenerator/Instructor/UserList.pm -u -r1.91.2.1 -r1.91.2.1.2.1 --- lib/WeBWorK/ContentGenerator/Instructor/UserList.pm +++ lib/WeBWorK/ContentGenerator/Instructor/UserList.pm @@ -1495,6 +1495,7 @@ values => \@values, default => $default, labels => \%labels, + override => 1, # force default to be selected. }); } } |