--- loncom/interface/lonhelper.pm 2005/07/07 04:12:01 1.105 +++ loncom/interface/lonhelper.pm 2005/07/07 04:32:59 1.108 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.105 2005/07/07 04:12:01 albertel Exp $ +# $Id: lonhelper.pm,v 1.108 2005/07/07 04:32:59 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3268,6 +3268,11 @@ sub render { 'answer_date' => "0_answerdate", 'tries' => '0_maxtries', 'weight' => '0_weight' ); + my %realParmName = ('open_date' => "opendate", + 'due_date' => "duedate", + 'answer_date' => "answerdate", + 'tries' => 'maxtries', + 'weight' => 'weight' ); my $affectedResourceId = ""; my $parm_name = $parmTypeHash{$vars->{ACTION_TYPE}}; @@ -3326,15 +3331,14 @@ sub render { my $result = "
\n"; $result .= "\n"; $result .= "\n"; - if ($vars->{ACTION_TYPE} eq 'tries') { - $result .= "\n"; - } else { - $result .= "&\"") . "' />\n"; - } + $result .= "\n"; if ($vars->{GRANULARITY} eq 'resource') { $result .= "&\"") . "' />\n"; + } elsif ($vars->{GRANULARITY} eq 'map') { + $result .= "\n"; } my $part = $vars->{RESOURCE_ID_part}; if ($part eq 'All Parts' || !$part) { $part=0; } @@ -3400,8 +3404,8 @@ sub render { my $classlist = Apache::loncoursedata::get_classlist(); my $username = $vars->{USER_NAME}; # Chop off everything after the last colon (section) - $username = substr($username, 0, rindex($username, ':')); - my $name = $classlist->{$username}->[6]; + my ($uname,$udom)=split(':',$username); + my $name = $classlist->{$uname.':'.$udom}->[6]; $result .= '
  • '.&mt('for [_1]',"$name").'
  • '; my ($uname, $udom) = split /:/, $vars->{USER_NAME}; $result .= ""; - $result .= "\n"; $result .= "\n"; $result .= "\n"; 500 Internal Server Error

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.