[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm

raeburn raeburn at source.lon-capa.org
Sat Sep 9 17:30:12 EDT 2017


raeburn		Sat Sep  9 21:30:12 2017 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - No breadcrumbtrail for folders/sub-folders for Placement Tests, unless
    viewed by privileged user.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.477 loncom/interface/lonmenu.pm:1.478
--- loncom/interface/lonmenu.pm:1.477	Mon Sep  4 23:47:22 2017
+++ loncom/interface/lonmenu.pm	Sat Sep  9 21:30:12 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.477 2017/09/04 23:47:22 raeburn Exp $
+# $Id: lonmenu.pm,v 1.478 2017/09/09 21:30:12 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -665,7 +665,8 @@
             my $maptitle = &Apache::lonnet::gettitle($mapurl);
             my $restitle = &Apache::lonnet::gettitle($symb);
             my (@crumbs, at mapcrumbs);
-            if (($env{'request.noversionuri'} ne '/adm/navmaps') && ($mapurl ne '')) {
+            if (($env{'request.noversionuri'} ne '/adm/navmaps') && ($mapurl ne '') &&
+                (!(($crstype eq 'Placement') && !$env{'request.role.adv'}))) {
                 $navmap = Apache::lonnavmaps::navmap->new();
                 if (ref($navmap)) {
                     @mapcrumbs = $navmap->recursed_crumbs($mapurl);
@@ -681,7 +682,7 @@
             if ($mapurl ne $env{'course.'.$env{'request.course.id'}.'.url'}) { 
                 if (@mapcrumbs) {
                     push(@crumbs, at mapcrumbs);
-                } else {
+                } elsif (!(($crstype eq 'Placement') && (!$env{'request.role.adv'}))) {
                     push(@crumbs, {text  => '...',
                                    no_mt => 1});
                 }




More information about the LON-CAPA-cvs mailing list