[LON-CAPA-cvs] cvs: loncom /interface lonsupportreq.pm
raeburn
raeburn at source.lon-capa.org
Tue Jul 25 21:03:58 EDT 2023
raeburn Wed Jul 26 01:03:58 2023 EDT
Modified files:
/loncom/interface lonsupportreq.pm
Log:
- If no code titles have been set for institutional course codes, but
"Ask Helpdesk" is used in course context for an "official" course,
populate the coursecode textbox with the value for the current course.
Index: loncom/interface/lonsupportreq.pm
diff -u loncom/interface/lonsupportreq.pm:1.104 loncom/interface/lonsupportreq.pm:1.105
--- loncom/interface/lonsupportreq.pm:1.104 Tue Jan 18 21:41:31 2022
+++ loncom/interface/lonsupportreq.pm Wed Jul 26 01:03:58 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Helpdesk request form
#
-# $Id: lonsupportreq.pm,v 1.104 2022/01/18 21:41:31 raeburn Exp $
+# $Id: lonsupportreq.pm,v 1.105 2023/07/26 01:03:58 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -466,7 +466,7 @@
my $numtitles = @codetitles;
if ($numtitles == 0) {
$output .= $html_lt{'enin'}.':
- <input type="text" name="coursecode" size="15" value="" />'."\n";
+ <input type="text" name="coursecode" size="15" value="'.&HTML::Entities::encode($ccode,'\'"&<>').'" />'."\n";
} else {
my @standardnames = &Apache::loncommon::get_standard_codeitems();
my $lasttitle = $numtitles;
More information about the LON-CAPA-cvs
mailing list