--- loncom/auth/lonroles.pm 2006/06/07 20:52:16 1.157
+++ loncom/auth/lonroles.pm 2006/06/26 21:41:09 1.160
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.157 2006/06/07 20:52:16 albertel Exp $
+# $Id: lonroles.pm,v 1.160 2006/06/26 21:41:09 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -149,8 +149,10 @@ sub handler {
# store role if recent_role list being kept
if ($env{'environment.recentroles'}) {
+ my %frozen_roles =
+ &Apache::lonhtmlcommon::get_recent_frozen('roles',$env{'environment.recentrolesn'});
&Apache::lonhtmlcommon::store_recent('roles',
- $trolecode,' ');
+ $trolecode,' ',$frozen_roles{$trolecode});
}
@@ -360,7 +362,7 @@ ENDENTERKEY
my $start_page=&Apache::loncommon::start_page('User Roles');
my $standby=&mt('Role selected. Please stand by.');
$standby=~s/\n/\\n/g;
- my $helptag='
'.&Apache::loncommon::help_open_menu('','General Intro','General_Intro','User Roles',1,undef,undef,undef,undef,,&mt("Click here for help")).' |
';
+ my $helptag=''.&Apache::loncommon::help_open_menu('','General Intro','General_Intro','',1,undef,undef,undef,undef,,&mt("Click here for help")).' |
';
$r->print(<
@@ -514,10 +516,8 @@ ENDHEADER
if ($tremark) { $tremark.='
'; }
$tremark.=&mt('Defined by ').$rauthor.
&mt(' at ').$rdomain.'.';
- $trole=$rrole;
- } else {
- $trole=Apache::lonnet::plaintext($role);
- }
+ }
+ $trole=Apache::lonnet::plaintext($role);
my $ttype;
my $twhere;
my ($tdom,$trest,$tsection)=