--- loncom/html/adm/helper/newslot.helper 2017/01/20 06:23:37 1.34
+++ loncom/html/adm/helper/newslot.helper 2023/07/07 03:52:41 1.36
@@ -208,11 +208,34 @@
delete($helper->{'VARS'}{'startreserve'});
delete($helper->{'VARS'}{'endreserve'});
delete($helper->{'VARS'}{'maxspace'});
- delete($helper->{'VARS'}{'startunique'});
- delete($helper->{'VARS'}{'endunique'});
+
+
Period of time when this slot can only be uniquely assigned:
Start:
+
+
+
+ my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime');
+ if ($default eq 'anytime') { return 'anytime' };
+ if (ref($default)) { return $default->[0]; }
+ return 'anytime';
+
+
+
End:
+
+
+ my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime');
+ if ($default eq 'anytime') { return 'anytime' };
+ if (ref($default)) { return $default->[1]; }
+ return 'anytime';
+
+
+ if (defined($val) && $val < $helper->{'VARS'}{'startunique'}) {
+ return 'End time must be later than the start time.';
+ }
+ return undef;
+
+
-
Proctored access:
@@ -315,8 +338,8 @@
PROCTOR
- return $res->is_map() || $res->is_problem()
- return $res->is_problem()
+ return $res->is_map() || $res->is_problem() || $res->is_tool()
+ return $res->is_problem() || || $res->is_tool()
return $res->symb()
my @defaults;