[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 13 Sep 2005 19:33:59 -0000
albertel Tue Sep 13 15:33:59 2005 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- part of BUG # 4348, custom roles with no start/endtime were not being show
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.654 loncom/lonnet/perl/lonnet.pm:1.655
--- loncom/lonnet/perl/lonnet.pm:1.654 Thu Sep 1 02:47:26 2005
+++ loncom/lonnet/perl/lonnet.pm Tue Sep 13 15:33:58 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.654 2005/09/01 06:47:26 albertel Exp $
+# $Id: lonnet.pm,v 1.655 2005/09/13 19:33:58 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2485,8 +2485,13 @@
my ($trole,$tend,$tstart);
if ($role=~/^cr/) {
- ($trole,my $trest)=($role=~m|^(cr/\w+/\w+/[a-zA-Z0-9]+)_(.*)$|);
- ($tend,$tstart)=split('_',$trest);
+ &logthis(" $role $area ");
+ if ($role=~m|^(cr/\w+/\w+/[a-zA-Z0-9]+)_(.*)$|) {
+ ($trole,my $trest)=($role=~m|^(cr/\w+/\w+/[a-zA-Z0-9]+)_(.*)$|);
+ ($tend,$tstart)=split('_',$trest);
+ } else {
+ $trole=$role;
+ }
} else {
($trole,$tend,$tstart)=split(/_/,$role);
}