--- loncom/interface/domainprefs.pm 2021/11/22 23:40:59 1.391
+++ loncom/interface/domainprefs.pm 2021/11/24 04:25:01 1.392
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.391 2021/11/22 23:40:59 raeburn Exp $
+# $Id: domainprefs.pm,v 1.392 2021/11/24 04:25:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -6129,7 +6129,8 @@ sub lti_options {
my (%checked,%rolemaps,$crssecsrc,$userfield,$cidfield,$callback);
$checked{'mapuser'}{'sourcedid'} = ' checked="checked"';
$checked{'mapcrs'}{'course_offering_sourcedid'} = ' checked="checked"';
- $checked{'makecrs'}{'N'} = ' checked="checked"';
+ $checked{'storecrs'}{'Y'} = ' checked="checked"';
+ $checked{'makecrs'}{'N'} = ' checked="checked"';
$checked{'mapcrstype'} = {};
$checked{'makeuser'} = {};
$checked{'selfenroll'} = {};
@@ -6187,6 +6188,10 @@ sub lti_options {
$checked{'mapcrstype'}{$type} = ' checked="checked"';
}
}
+ if (!$current->{'storecrs'}) {
+ $checked{'storecrs'}{'N'} = $checked{'storecrs'}{'Y'};
+ $checked{'storecrs'}{'Y'} = '';
+ }
if ($current->{'makecrs'}) {
$checked{'makecrs'}{'Y'} = ' checked="checked"';
}
@@ -6294,7 +6299,7 @@ sub lti_options {
my $onclicklcauth = ' onclick="toggleLTI(this.form,'."'lcauth','$num'".')"';
my $onclickmenu = ' onclick="toggleLTI(this.form,'."'lcmenu','$num'".');"';
my $output = '