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

raeburn raeburn at source.lon-capa.org
Tue May 29 12:25:53 EDT 2012


raeburn		Tue May 29 16:25:53 2012 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - Bug 5891.
  - Countdown shown when no due date, but timed interval set.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.379 loncom/interface/lonmenu.pm:1.380
--- loncom/interface/lonmenu.pm:1.379	Mon May 28 19:00:58 2012
+++ loncom/interface/lonmenu.pm	Tue May 29 16:25:53 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.379 2012/05/28 19:00:58 raeburn Exp $
+# $Id: lonmenu.pm,v 1.380 2012/05/29 16:25:53 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1814,9 +1814,10 @@
         ($env{'request.filename'}=~/$LONCAPA::assess_re/) &&
         ($Apache::inputtags::status[-1] eq 'CAN_ANSWER')) {
         my $duedate = &Apache::lonnet::EXT("resource.0.duedate");
-        if ($duedate && $duedate > time) {
+        my @interval=&Apache::lonnet::EXT("resource.0.interval");
+        if (($duedate && $duedate > time) ||
+            (!$duedate && @interval > 1)) {
             my ($collapse,$expand,$alttxt,$title,$currdisp);
-            my @interval=&Apache::lonnet::EXT("resource.0.interval");
             if (@interval > 1) {
                 $currdisp = 'inline';
                 $collapse = '► ';




More information about the LON-CAPA-cvs mailing list