version 1.52.2.1, 2016/08/31 23:28:05
|
version 1.53, 2016/04/04 01:09:48
|
Line 523 sub build_queue_display {
|
Line 523 sub build_queue_display {
|
unofficial => 'Unofficial course', |
unofficial => 'Unofficial course', |
community => 'Community', |
community => 'Community', |
textbook => 'Textbook course', |
textbook => 'Textbook course', |
|
placement => 'Placement test', |
); |
); |
$output .= '<th>'.&mt('Type').'</th>'. |
$output .= '<th>'.&mt('Type').'</th>'. |
'<th>'.&mt('Date requested').'</th>'. |
'<th>'.&mt('Date requested').'</th>'. |
Line 1603 sub course_creation {
|
Line 1604 sub course_creation {
|
$keysmsg,$domdefs,$longroles,$coderef,$customhash) = @_; |
$keysmsg,$domdefs,$longroles,$coderef,$customhash) = @_; |
unless ((ref($details) eq 'HASH') && (ref($domdefs) eq 'HASH') && |
unless ((ref($details) eq 'HASH') && (ref($domdefs) eq 'HASH') && |
(ref($longroles) eq 'HASH')) { |
(ref($longroles) eq 'HASH')) { |
return 'error: Invalid request'; |
return ('error: Invalid request'); |
} |
} |
my ($result,$ownername,$ownerdom); |
my ($result,$ownername,$ownerdom); |
my $crstype = $details->{'crstype'}; |
my $crstype = $details->{'crstype'}; |
Line 1674 sub build_batchcreatehash {
|
Line 1675 sub build_batchcreatehash {
|
$batchhash{'authparam'} = $domdefs->{'auth_arg_def'}; |
$batchhash{'authparam'} = $domdefs->{'auth_arg_def'}; |
if ($details->{'crstype'} eq 'community') { |
if ($details->{'crstype'} eq 'community') { |
$batchhash{'crstype'} = 'Community'; |
$batchhash{'crstype'} = 'Community'; |
|
} elsif ($details->{'crstype'} eq 'placement') { |
|
$batchhash{'crstype'} = 'Placement'; |
} else { |
} else { |
if ($details->{'crstype'} eq 'textbook') { |
if ($details->{'crstype'} eq 'textbook') { |
if ($details->{'clonecrs'} && $details->{'clonedom'}) { |
if ($details->{'clonecrs'} && $details->{'clonedom'}) { |
Line 1719 sub build_batchcreatehash {
|
Line 1722 sub build_batchcreatehash {
|
$batchhash{'users'}{$owner}{lastname} = $owner_lastname; |
$batchhash{'users'}{$owner}{lastname} = $owner_lastname; |
$batchhash{'users'}{$owner}{emailenc} = $emailenc; |
$batchhash{'users'}{$owner}{emailenc} = $emailenc; |
$batchhash{'users'}{$owner}{owneremail} = $owneremail; |
$batchhash{'users'}{$owner}{owneremail} = $owneremail; |
$batchhash{'setcomment'} = 1; |
|
} |
} |
return %batchhash; |
return %batchhash; |
} |
} |