[LON-CAPA-cvs] cvs: loncom /html/adm/helper newslot.helper
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 03 Feb 2006 22:40:46 -0000
albertel Fri Feb 3 17:40:46 2006 EDT
Modified files:
/loncom/html/adm/helper newslot.helper
Log:
- weren't able to actually change the start reserve time
Index: loncom/html/adm/helper/newslot.helper
diff -u loncom/html/adm/helper/newslot.helper:1.11 loncom/html/adm/helper/newslot.helper:1.12
--- loncom/html/adm/helper/newslot.helper:1.11 Fri Nov 18 11:54:01 2005
+++ loncom/html/adm/helper/newslot.helper Fri Feb 3 17:40:46 2006
@@ -213,6 +213,9 @@
$slot{$which} = $helper->{'VARS'}{$which};
}
}
+ if ( $helper->{'VARS'}{'startreserve'} > 0) {
+ $slot{'startreserve'} = $helper->{'VARS'}{'startreserve'};
+ }
if ( $helper->{'VARS'}{'startunique'} > 0 &&
$helper->{'VARS'}{'endunique'} > 0 ) {
$slot{'uniqueperiod'} = [$helper->{'VARS'}{'startunique'},
@@ -246,6 +249,10 @@
&HTML::Entities::encode($slot{$which}).'</li>';
}
}
+ if (exists($slot{'startreserve'})) {
+ $result.="\n".'<li> '.$labels{'startreserve'}.': '.
+ &Apache::lonlocal::locallocaltime($slot{'startreserve'}).'</li>';
+ }
if (exists($slot{'proctor'})) {
my $proctors = $slot{'proctor'};
$proctors =~ s/,/, /g;