--- loncom/lonnet/perl/lonnet.pm 2004/10/26 15:03:08 1.552 +++ loncom/lonnet/perl/lonnet.pm 2004/10/26 15:15:18 1.553 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.552 2004/10/26 15:03:08 albertel Exp $ +# $Id: lonnet.pm,v 1.553 2004/10/26 15:15:18 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1873,6 +1873,7 @@ sub devalidate { # - the student level sheet of this user in course's homespace # - the assessment level sheet for this resource # for this user in user's homespace + # - current conditional state info my $key=$uname.':'.$udom.':'; my $status= &del('nohist_calculatedsheets', @@ -1887,6 +1888,7 @@ sub devalidate { $uname.' at '.$udom.' for '. $symb.': '.$status); } + &delenv('user.state.'.$cid); } } @@ -3056,6 +3058,9 @@ sub allowed { return ''; } } + if (!defined($ENV{'user.state.'.$ENV{'request.course.id'}})) { + &Apache::lonuserstate::evalstate(); + } if (&condval($statecond)) { return '2'; } else {