--- loncom/homework/structuretags.pm 2005/11/03 11:10:25 1.308 +++ loncom/homework/structuretags.pm 2005/11/08 17:53:20 1.316 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.308 2005/11/03 11:10:25 foxr Exp $ +# $Id: structuretags.pm,v 1.316 2005/11/08 17:53:20 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -175,6 +175,8 @@ sub setup_rndseed { my ($symb)=&Apache::lonxml::whichuser(); if ($env{'request.state'} eq "construct" || $symb eq '' || $Apache::lonhomework::history{'resource.CODE'}) { + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + ['rndseed']); $rndseed=$env{'form.rndseed'}; if (!$rndseed) { $rndseed=$Apache::lonhomework::history{'rndseed'}; @@ -245,9 +247,11 @@ sub option { sub problem_web_to_edit_header { my ($rndseed)=@_; - my $result.=' - - + my $result.=''; + if (!$Apache::lonhomework::parsing_a_task) { + $result .= ''; + } + $result .= ' @@ -255,11 +259,17 @@ sub problem_web_to_edit_header { $rndseed.'" onchange="javascript:document.lonhomework.changerandseed.click()" />