--- loncom/interface/lonparmset.pm 2002/10/28 23:28:52 1.75
+++ loncom/interface/lonparmset.pm 2002/11/03 19:05:31 1.76
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set parameters for assessments
#
-# $Id: lonparmset.pm,v 1.75 2002/10/28 23:28:52 albertel Exp $
+# $Id: lonparmset.pm,v 1.76 2002/11/03 19:05:31 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -657,6 +657,7 @@ sub assessparms {
my @pscat=&get_env_multiple('form.pscat');
my $pschp=$ENV{'form.pschp'};
my @psprt=&get_env_multiple('form.psprt');
+ if (!@psprt) { $psprt[0]='0'; }
my $showoptions=$ENV{'form.showoptions'};
my $pssymb='';
@@ -930,7 +931,6 @@ sub assessparms {
$r->print('>All Parameters');
my $cnt=0;
-
foreach $tempkey (sort { $allparms{$a} cmp $allparms{$b} }
keys %allparms ) {
++$cnt;
@@ -949,10 +949,12 @@ sub assessparms {
$r->print('');
+ my %temphash=();
+ foreach (@psprt) { $temphash{$_}=1; }
foreach $tempkey (sort keys %allparts) {
unless ($tempkey =~ /\./) {
$r->print('');
@@ -999,12 +1001,12 @@ sub assessparms {
}
$r->print('');
- my @temp_psprt;
- foreach my $t (@psprt) {
- push(@temp_psprt, grep {eval (/^$t\./ || ($_ == $t))} (keys %allparts));
- }
+# my @temp_psprt;
+# foreach my $t (@psprt) {
+# push(@temp_psprt, grep {eval (/^$t\./ || ($_ == $t))} (keys %allparts));
+# }
- @psprt = @temp_psprt;
+# @psprt = @temp_psprt;
my @temp_pscat;
map {