[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm
raeburn
raeburn at source.lon-capa.org
Wed Oct 19 21:03:16 EDT 2022
raeburn Thu Oct 20 01:03:16 2022 EDT
Modified files:
/loncom/interface lonhtmlcommon.pm
Log:
- Bug 6975
Folders in Supplemental Content area can be hidden using Course Editor.
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.406 loncom/interface/lonhtmlcommon.pm:1.407
--- loncom/interface/lonhtmlcommon.pm:1.406 Tue Sep 13 12:22:14 2022
+++ loncom/interface/lonhtmlcommon.pm Thu Oct 20 01:03:16 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.406 2022/09/13 12:22:14 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.407 2022/10/20 01:03:16 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2263,8 +2263,10 @@
# each of randompick number, hidden, encrypted, random order, is_page
# are appended with ":"s to the foldername
$name=~s/\:(\d*)\:(\w*)\:(\w*):(\d*)\:?(\d*)$//;
- unless ($supplementalflag) {
- if ($contenteditor) {
+ if ($contenteditor) {
+ if ($supplementalflag) {
+ if ($2) { $ishidden=1; }
+ } else {
if ($1 ne '') {
$randompick=$1;
} else {
More information about the LON-CAPA-cvs
mailing list