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

raeburn raeburn@source.lon-capa.org
Mon, 29 Mar 2010 13:34:41 -0000


raeburn		Mon Mar 29 13:34:41 2010 EDT

  Modified files:              
    /loncom/interface	lonbulletin.pm 
  Log:
  - Propagate register=1 for discussion board included in a course when toggling
    between "Edit" and "Student" views.
  
  
Index: loncom/interface/lonbulletin.pm
diff -u loncom/interface/lonbulletin.pm:1.58 loncom/interface/lonbulletin.pm:1.59
--- loncom/interface/lonbulletin.pm:1.58	Sun Jan 31 06:03:55 2010
+++ loncom/interface/lonbulletin.pm	Mon Mar 29 13:34:40 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Bulletin Board Handler
 #
-# $Id: lonbulletin.pm,v 1.58 2010/01/31 06:03:55 faziophi Exp $
+# $Id: lonbulletin.pm,v 1.59 2010/03/29 13:34:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -184,6 +184,9 @@
         if (($group ne '') && ($env{'form.group'} eq $group)) {
             $query_str.='&group='.$group.'&'.$refarg;
         }
+        if ($env{'form.register'}) {
+            $query_str .= '&register='.$env{'form.register'};
+        }
         #Function Box for Edit Mode.
         my $functionbox = &Apache::lonhtmlcommon::start_funclist();
         $functionbox .=  &Apache::lonhtmlcommon::add_item_funclist(
@@ -196,6 +199,9 @@
         if (($group ne '') && ($env{'form.group'} eq $group)) {
             $query_str.='&group='.$group.'&'.$refarg;
         }
+        if ($env{'form.register'}) {
+            $query_str .= '&register='.$env{'form.register'};
+        }
         #Functionbox for Student view.
         my $functionbox = &Apache::lonhtmlcommon::start_funclist();
         $functionbox .=  &Apache::lonhtmlcommon::add_item_funclist(