Log Message:
-----------
Instructor/Index: correct link sent when acting as a user on a
set to allow for gateway test assignments.
Modified Files:
--------------
webwork2/lib/WeBWorK/ContentGenerator/Instructor:
Index.pm
Revision Data
-------------
Index: Index.pm
===================================================================
RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/Index.pm,v
retrieving revision 1.59
retrieving revision 1.60
diff -Llib/WeBWorK/ContentGenerator/Instructor/Index.pm -Llib/WeBWorK/ContentGenerator/Instructor/Index.pm -u -r1.59 -r1.60
--- lib/WeBWorK/ContentGenerator/Instructor/Index.pm
+++ lib/WeBWorK/ContentGenerator/Instructor/Index.pm
@@ -204,7 +204,16 @@
defined param $r "act_as_user" and do {
if ($nusers == 1 and $nsets <= 1) {
if ($nsets) {
- $module = "${pfx}::ProblemSet";
+ # unfortunately, we need to know what
+ # type of set it is to figure out
+ # the correct module
+ my $set = $db->getGlobalSet( $firstSetID );
+ if ( defined( $set ) &&
+ $set->assignment_type =~ /gateway/ ) {
+ $module = "${pfx}::GatewayQuiz";
+ } else {
+ $module = "${pfx}::ProblemSet";
+ }
$args{setID} = $firstSetID;
} else {
$module = "${pfx}::ProblemSets";
|