From: Gavin L. v. a. <we...@ma...> - 2008-07-10 15:18:23
|
Log Message: ----------- ProblemSetDetail: correct typo in grouping set message, don't show problem seeds for usersets of gateway assignments (because the seeds there aren't used for anything; only the version's seeds matter). Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator/Instructor: ProblemSetDetail.pm Revision Data ------------- Index: ProblemSetDetail.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm,v retrieving revision 1.73 retrieving revision 1.74 diff -Llib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm -Llib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm -u -r1.73 -r1.74 --- lib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm +++ lib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm @@ -373,6 +373,10 @@ (! $forUsers && ( $globalRecord->restrict_ip eq '' || $globalRecord->restrict_ip eq 'No' ) ) ) ); + # skip the problem seed if we're editing a gateway set for users, + # but aren't editing a set version + next if ( $field eq 'problem_seed' && + ( $isGWset && $forUsers && ! $setVersion ) ); unless ($properties{type} eq "hidden") { $output .= CGI::Tr({}, CGI::td({}, [$self->FieldHTML($userID, $setID, $problemID, $globalRecord, $userRecord, $field)])) . "\n"; @@ -1557,7 +1561,7 @@ my $ce = $r->ce; return "No source file specified" unless $file; - return "Problem source is drawn from grouping set" if $file =~ /^group/; + return "Problem source is drawn from a grouping set" if $file =~ /^group/; $file = $ce->{courseDirs}->{templates} . '/' . $file unless $file =~ m|^/|; my $text = "This source file "; |