[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm
raeburn
raeburn at source.lon-capa.org
Mon May 2 01:41:16 EDT 2022
raeburn Mon May 2 05:41:16 2022 EDT
Modified files:
/loncom/interface lonnavmaps.pm
Log:
- Bug 6823
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.554 loncom/interface/lonnavmaps.pm:1.555
--- loncom/interface/lonnavmaps.pm:1.554 Wed Aug 4 19:59:10 2021
+++ loncom/interface/lonnavmaps.pm Mon May 2 05:41:15 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.554 2021/08/04 19:59:10 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.555 2022/05/02 05:41:15 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1464,11 +1464,15 @@
my $mapIterator = $navmap->getIterator(undef, undef, undef, 1);
my $curRes;
my $found = 0;
+ my $here_is_navmaps = 0;
+ if ($here =~ m{___\d+___adm/navmaps$}) {
+ $here_is_navmaps = 1;
+ }
# We only need to do this if we need to open the maps to show the
# current position. This will change the counter so we can't count
# for the jump marker with this loop.
- while ($here && ($curRes = $mapIterator->next()) && !$found) {
+ while ($here && ($curRes = $mapIterator->next()) && !$found && !$here_is_navmaps) {
if (ref($curRes) && $curRes->symb() eq $here) {
my $mapStack = $mapIterator->getStack();
More information about the LON-CAPA-cvs
mailing list