--- loncom/homework/hint.pm 2004/01/07 21:01:17 1.46 +++ loncom/homework/hint.pm 2004/03/04 21:21:55 1.47 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # implements the tags that control the hints # -# $Id: hint.pm,v 1.46 2004/01/07 21:01:17 albertel Exp $ +# $Id: hint.pm,v 1.47 2004/03/04 21:21:55 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -48,6 +48,11 @@ sub start_hintgroup { my $numtries=$Apache::lonhomework::history{"resource.$id.tries"}; if ( $numtries eq '') { $numtries = 0; } my $hinttries=&Apache::lonnet::EXT("resource.$id.hinttries"); + if ($ENV{'request.state'} eq 'construct' && + defined($Apache::inputtags::params{'hinttries'})) { + $hinttries=$Apache::inputtags::params{'hinttries'}; + } + if ( $hinttries eq '') { $hinttries = 1; } &Apache::lonxml::debug("found :$id:$numtries:$hinttries:"); my $gradestatus=$Apache::lonhomework::history{"resource.$id.solved"};