[LON-CAPA-cvs] cvs: loncom /html/adm/helper parameter.helper

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 16 May 2006 21:41:19 -0000


albertel		Tue May 16 17:41:19 2006 EDT

  Modified files:              
    /loncom/html/adm/helper	parameter.helper 
  Log:
  - hid the group option if course has no groups
  
  
Index: loncom/html/adm/helper/parameter.helper
diff -u loncom/html/adm/helper/parameter.helper:1.15 loncom/html/adm/helper/parameter.helper:1.16
--- loncom/html/adm/helper/parameter.helper:1.15	Tue Nov 22 07:49:55 2005
+++ loncom/html/adm/helper/parameter.helper	Tue May 16 17:41:18 2006
@@ -148,8 +148,11 @@
          . . . for <b>all students</b> in the course</choice>
       <choice computer="section" nextstate="CHOOSE_SECTION">
          . . . for a particular <b>section</b></choice>
-      <choice computer="group" nextstate="CHOOSE_GROUP">
-         . . . for a particular <b>group</b></choice>
+      <condition>
+        <clause>return 1 if (&Apache::loncommon::coursegroups())</clause>
+        <choice computer="group" nextstate="CHOOSE_GROUP">
+           . . . for a particular <b>group</b></choice>
+      </condition>
       <choice computer="student" nextstate="CHOOSE_STUDENT">
          . . . for an individual <b>student</b></choice>
       </choices>