[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn@source.lon-capa.org
Sat, 22 Jan 2011 00:46:15 -0000


raeburn		Sat Jan 22 00:46:15 2011 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Bug 6417. Issue in Course Editor when displaying links to items with embstyle of "ign".
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1101 loncom/lonnet/perl/lonnet.pm:1.1102
--- loncom/lonnet/perl/lonnet.pm:1.1101	Fri Jan 21 12:08:28 2011
+++ loncom/lonnet/perl/lonnet.pm	Sat Jan 22 00:46:15 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1101 2011/01/21 12:08:28 raeburn Exp $
+# $Id: lonnet.pm,v 1.1102 2011/01/22 00:46:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -8918,8 +8918,9 @@
             $thisurl =~ s/\?.+$//;
         }
         my $ids=$bighash{'ids_'.&clutter($thisurl)};
-        unless ($ids) { 
-           $ids=$bighash{'ids_/'.$thisurl};
+        unless ($ids) {
+            my $idkey = 'ids_'.($thisurl =~ m{^/}? '' : '/').$thisurl;  
+            $ids=$bighash{$idkey};
         }
         if ($ids) {
 # ------------------------------------------------------------------- Has ID(s)