Diff for /loncom/interface/lonparmset.pm between versions 1.522.2.6 and 1.522.2.7

version 1.522.2.6, 2013/05/23 14:26:43 version 1.522.2.7, 2013/06/27 18:22:41
Line 1082  sub print_td { Line 1082  sub print_td {
         if ($which > 3) {          if ($which > 3) {
             $nolink = 1;              $nolink = 1;
         }          }
       } elsif ($mprefix =~ /examcode\&$/) {
           unless ($which == 2) {
               $nolink = 1;
           }
     }      }
     if ($nolink) {      if ($nolink) {
         $r->print(&valout($$outpar[$which],$$typeoutpar[$which]));          $r->print(&valout($$outpar[$which],$$typeoutpar[$which]));
Line 1405  sub lookUpTableParameter { Line 1409  sub lookUpTableParameter {
         'lenient' => 'grading',          'lenient' => 'grading',
         'retrypartial' => 'tries',          'retrypartial' => 'tries',
         'discussvote'  => 'misc',          'discussvote'  => 'misc',
           'examcode' => 'high_level_randomization',
     );          );    
 }  }
   
Line 2162  sub assessparms { Line 2166  sub assessparms {
                         }                          }
                     }                      }
                 }                  }
             } elsif ($markers[$i] =~ /_(type|lenient|retrypartial|discussvote)\&\d+$/) {              } elsif ($markers[$i] =~ /_(type|lenient|retrypartial|discussvote|examcode)\&\d+$/) {
                 $name = $1;                  $name = $1;
                   my $val = $values[$i];
                   if ($name eq 'examcode') {
                      if (&Apache::lonnet::validCODE($values[$i])) {
                          $val = 'valid';
                      }
                   }
                 $needsrelease =                  $needsrelease =
                     $Apache::lonnet::needsrelease{"parameter:$name:$values[$i]"};                      $Apache::lonnet::needsrelease{"parameter:$name:$val"};
                 if ($needsrelease) {                  if ($needsrelease) {
                     unless ($got_chostname) {                      unless ($got_chostname) {
                         ($chostname,$cmajor,$cminor) = &parameter_release_vars();                          ($chostname,$cmajor,$cminor) = &parameter_release_vars();
                         $got_chostname = 1;                          $got_chostname = 1;
                     }                      }
                     $needsnewer = &parameter_releasecheck($name,$values[$i],                      $needsnewer = &parameter_releasecheck($name,$val,
                                                           $needsrelease,                                                            $needsrelease,
                                                           $chostname,                                                            $chostname,
                                                           $cmajor,$cminor);                                                            $cmajor,$cminor);
Line 2819  sub storedata { Line 2829  sub storedata {
                 $name = 'lenient';                  $name = 'lenient';
             } elsif ($typeof eq 'string_discussvote') {              } elsif ($typeof eq 'string_discussvote') {
                 $name = 'discussvote';                  $name = 'discussvote';
               } elsif ($typeof eq 'string_examcode') {
                   $name = 'examcode';
             } elsif ($typeof eq 'string_yesno') {              } elsif ($typeof eq 'string_yesno') {
                 if ($thiskey =~ /\.retrypartial$/) {                  if ($thiskey =~ /\.retrypartial$/) {
                     $name = 'retrypartial';                      $name = 'retrypartial';
Line 4643  sub oldversion_warning { Line 4655  sub oldversion_warning {
                         lenient      => 'string_lenient',                          lenient      => 'string_lenient',
                         retrypartial => 'string_yesno',                          retrypartial => 'string_yesno',
                         discussvote  => 'string_discussvote',                          discussvote  => 'string_discussvote',
                           examcode     => 'string_examcode',
                       );                        );
     if (exists($stringtypes{$name})) {      if (exists($stringtypes{$name})) {
         if (ref($strings{$stringtypes{$name}}) eq 'ARRAY') {          if ($name eq 'examcode') {
               $desc = $value;
           } elsif (ref($strings{$stringtypes{$name}}) eq 'ARRAY') {
             foreach my $possibilities (@{ $strings{$stringtypes{$name}} }) {              foreach my $possibilities (@{ $strings{$stringtypes{$name}} }) {
                 next unless (ref($possibilities) eq 'ARRAY');                  next unless (ref($possibilities) eq 'ARRAY');
                 my ($parmval, $description) = @{ $possibilities };                  my ($parmval, $description) = @{ $possibilities };

Removed from v.1.522.2.6  
changed lines
  Added in v.1.522.2.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>