[LON-CAPA-cvs] cvs: loncom /html/adm/helper newslot.helper
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 16 May 2006 21:03:42 -0000
albertel Tue May 16 17:03:42 2006 EDT
Modified files:
/loncom/html/adm/helper newslot.helper
Log:
- create a correct slot definiton when 'No proctor' is selected
Index: loncom/html/adm/helper/newslot.helper
diff -u loncom/html/adm/helper/newslot.helper:1.18 loncom/html/adm/helper/newslot.helper:1.19
--- loncom/html/adm/helper/newslot.helper:1.18 Tue May 9 15:10:39 2006
+++ loncom/html/adm/helper/newslot.helper Tue May 16 17:03:42 2006
@@ -218,7 +218,7 @@
<nextstate>RESTRICTUSER</nextstate>
</condition>
- <choices variable="noproctor">
+ <choices variable="useproctor">
<choice computer='no'>No proctor checkin required for access.</choice>
<choice computer='yes'>Require proctored access.</choice>
<defaultvalue>
@@ -297,7 +297,8 @@
$helper->{'VARS'}{'endunique'}];
}
- if ( $helper->{'VARS'}{'proctor'} =~/\S/ ) {
+ if ( $helper->{'VARS'}{'useproctor'} eq 'yes'
+ && $helper->{'VARS'}{'proctor'} =~/\S/ ) {
my @names;
# just need the username/domain throw away the other data
# that <student> returns