Diff for /loncom/interface/lonquickgrades.pm between versions 1.49.6.8.2.5 and 1.49.6.9

version 1.49.6.8.2.5, 2024/01/05 19:50:32 version 1.49.6.9, 2024/07/03 18:51:56
Line 85  sub real_handler { Line 85  sub real_handler {
   
     unless ($cangrade) {      unless ($cangrade) {
         # Check for critical messages and redirect if present.          # Check for critical messages and redirect if present.
         my ($redirect,$url) = &Apache::loncommon::critical_redirect(300,'grades');          my ($redirect,$url) = &Apache::loncommon::critical_redirect(300);
         if ($redirect) {          if ($redirect) {
             &Apache::loncommon::content_type($r,'text/html');              &Apache::loncommon::content_type($r,'text/html');
             $r->header_out(Location => $url);              $r->header_out(Location => $url);
Line 101  sub real_handler { Line 101  sub real_handler {
             $r->send_http_header;              $r->send_http_header;
             $r->print(&Apache::loncommon::check_release_result(@reinit));              $r->print(&Apache::loncommon::check_release_result(@reinit));
             return OK;              return OK;
         }          } elsif ($reinitresult eq 'update') {
         my ($cid,$cnum,$cdom);              my $cid = $env{'request.course.id'};
         if ($reinitresult) {              my $cnum = $env{'course.'.$cid.'.num'};
             $cid = $env{'request.course.id'};              my $cdom = $env{'course.'.$cid.'.domain'};
             $cnum = $env{'course.'.$cid.'.num'};  
             $cdom = $env{'course.'.$cid.'.domain'};  
         }  
         if (($reinitresult eq 'main') || ($reinitresult eq 'both')) {          
             &Apache::loncommon::content_type($r,'text/html');              &Apache::loncommon::content_type($r,'text/html');
             $r->send_http_header;              $r->send_http_header;
             &startpage($r,$showPoints);              &startpage($r,$showPoints);
Line 140  ENDCLOSE Line 136  ENDCLOSE
                $r->print($closure);                 $r->print($closure);
             }              }
         }          }
         if (($reinitresult eq 'supp') || ($reinitresult eq 'both')) {  
             my $possdel;  
             if ($reinitresult eq 'supp') {  
                 $possdel = 1;  
             }  
             my ($supplemental,$refs_updated) = &Apache::loncommon::get_supplemental($cnum,$cdom,'',$possdel);  
             unless ($refs_updated) {  
                 &Apache::loncommon::set_supp_httprefs($cnum,$cdom,$supplemental);  
             }  
         }  
     }      }
   
     unless (($reinitresult eq 'main') || ($reinitresult eq 'both')) {      unless ($reinitresult eq 'update') {
         # Send header, don't cache this page          # Send header, don't cache this page
         &Apache::loncommon::no_cache($r);          &Apache::loncommon::no_cache($r);
         $r->send_http_header;          $r->send_http_header;
Line 315  sub getData { Line 301  sub getData {
         if ($curRes == $iterator->BEGIN_MAP()) {$depth++;}          if ($curRes == $iterator->BEGIN_MAP()) {$depth++;}
         if ($curRes == $iterator->END_MAP()) { $depth--; }          if ($curRes == $iterator->END_MAP()) { $depth--; }
   
         if (ref($curRes) && $curRes->is_gradable() && !$curRes->randomout)          if (ref($curRes) && $curRes->is_problem() && !$curRes->randomout)
         {          {
             # Get number of correct, incorrect parts              # Get number of correct, incorrect parts
             my $parts = $curRes->parts();              my $parts = $curRes->parts();

Removed from v.1.49.6.8.2.5  
changed lines
  Added in v.1.49.6.9


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