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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Mon, 14 May 2007 15:25:46 -0000


raeburn		Mon May 14 11:25:46 2007 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Set radio buttons correctly for auto-enrollment when domainconfig has not yet been set.  
  - Add a missing space.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.13 loncom/interface/domainprefs.pm:1.14
--- loncom/interface/domainprefs.pm:1.13	Tue May  1 21:33:48 2007
+++ loncom/interface/domainprefs.pm	Mon May 14 11:25:44 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.13 2007/05/02 01:33:48 albertel Exp $
+# $Id: domainprefs.pm,v 1.14 2007/05/14 15:25:44 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -764,6 +764,14 @@
         if (exists($settings->{'sender_domain'})) {
             $defdom = $settings->{'sender_domain'};
         }
+    } else {
+        if ($autorun) {
+            $runon = ' checked="checked" ';
+            $runoff = ' ';
+        } else {
+            $runoff = ' checked="checked" ';
+            $runon = ' ';
+        }
     }
     my $domform = &Apache::loncommon::select_dom_form($defdom,'sender_domain',1);
     my $datatable='<tr class="LC_odd_row">'.
@@ -772,7 +780,7 @@
                   '<input type="radio" name="autoenroll_run"'.
                   $runon.' value="1" />'.&mt('Yes').'</label>&nbsp;'.
                   '<label><input type="radio" name="autoenroll_run"'.
-                  $runoff.'value="0" />'.&mt('No').'</label></span></td>'.
+                  $runoff.' value="0" />'.&mt('No').'</label></span></td>'.
                   '</tr><tr>'.
                   '<td>'.&mt('Notification messages - sender').
                   '</td><td class="LC_right_item"><span class="LC_nobreak">'.