[LON-CAPA-cvs] cvs: loncom /interface lonpickcourse.pm
raeburn
raeburn at source.lon-capa.org
Tue Nov 1 11:47:12 EDT 2016
raeburn Tue Nov 1 15:47:12 2016 EDT
Modified files:
/loncom/interface lonpickcourse.pm
Log:
- Support case where only one custom ad hoc role is available to current
user.
Index: loncom/interface/lonpickcourse.pm
diff -u loncom/interface/lonpickcourse.pm:1.120 loncom/interface/lonpickcourse.pm:1.121
--- loncom/interface/lonpickcourse.pm:1.120 Wed Oct 19 13:14:05 2016
+++ loncom/interface/lonpickcourse.pm Tue Nov 1 15:47:11 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Pick a course
#
-# $Id: lonpickcourse.pm,v 1.120 2016/10/19 13:14:05 raeburn Exp $
+# $Id: lonpickcourse.pm,v 1.121 2016/11/01 15:47:11 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -453,6 +453,7 @@
} else {
$r->print(&mt('Enter the course with the ad hoc role of: [_1]',$adhoc[0]));
}
+ $r->print('<input type="hidden" name="adhocrole" value="'.$adhoc[0].'" />');
}
}
}
More information about the LON-CAPA-cvs
mailing list