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

raeburn raeburn at source.lon-capa.org
Sun Sep 13 19:49:36 EDT 2026


raeburn		Sun Sep 13 23:49:36 2026 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Prevent ISE in unconfigured domain.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.465 loncom/interface/domainprefs.pm:1.466
--- loncom/interface/domainprefs.pm:1.465	Sun Aug 23 20:39:53 2026
+++ loncom/interface/domainprefs.pm	Sun Sep 13 23:49:35 2026
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.465 2026/08/23 20:39:53 raeburn Exp $
+# $Id: domainprefs.pm,v 1.466 2026/09/13 23:49:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7169,6 +7169,7 @@
         my %checkedpdf = (
                              0 => ' checked="checked"',
                          );
+        my $currmaxsizepdf;
         if (ref($settings) eq 'HASH') {
             if ($settings->{'texengine'}) {
                 if ($settings->{'texengine'} =~ /^(MathJax|mimetex|tth)$/) {
@@ -7179,6 +7180,12 @@
                 delete($checkedpdf{0});
                 $checkedpdf{$settings->{'canuse_pdfforms'}} = ' checked="checked"';
             }
+            if ($settings->{'maxsizepdfform'} ne '') {
+                $currmaxsizepdf = $settings->{'maxsizepdfform'};
+            }
+        }
+        if ($currmaxsizepdf eq '') {
+            $currmaxsizepdf = $staticdefaults{'maxsizepdfform'};
         }
         $css_class = $itemcount%2?' class="LC_odd_row"':'';
         my $mathdisp = '<tr'.$css_class.'><td style="vertical-align: top">'.
@@ -7203,10 +7210,6 @@
         ($datatable,$itemcount) = &radiobutton_prefs($settings,\@toggles,\%defaultchecked,
                                                      \%choices,$itemcount);
         $datatable = $mathdisp.$datatable;
-        my $currmaxsizepdf = $settings->{'maxsizepdfform'};
-        if ($currmaxsizepdf eq '') {
-            $currmaxsizepdf = $staticdefaults{'maxsizepdfform'};
-        }
         $css_class = $itemcount%2?' class="LC_odd_row"':'';
         my %pdftext = &Apache::lonlocal::texthash (
                         2 => 'Yes, including checkboxes',




More information about the LON-CAPA-cvs mailing list