--- loncom/interface/statistics/lonstudentassessment.pm 2006/01/22 21:11:59 1.127 +++ loncom/interface/statistics/lonstudentassessment.pm 2006/01/28 19:25:59 1.128 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstudentassessment.pm,v 1.127 2006/01/22 21:11:59 bowersj2 Exp $ +# $Id: lonstudentassessment.pm,v 1.128 2006/01/28 19:25:59 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1144,7 +1144,7 @@ sub excel_initialize { ! defined($formula_data{$symb}->{'Excel:endcell'})) { $formula_data{$symb}->{'Excel:endcell'} = $formula_data{$symb}->{'Excel:startcell'}; } - # =IF(COUNT(B31:L31);SUM(B31:L31);"") + my $start = $formula_data{$symb}->{'Excel:startcell'}; my $end = $formula_data{$symb}->{'Excel:endcell'}; $formula_data{$symb}->{'Excel:sum'}= $excel_sheet->store_formula @@ -1233,7 +1233,7 @@ sub excel_initialize { $weight = 1; if ($chosen_output->{'scores'}) { $weight = &Apache::lonnet::EXT - ('resource.'.$part.'.weight',$resource->{'symb'}, + ('resource.'.$part.'.weight',$resource->symb, undef,undef,undef); if (!defined($weight) || ($weight eq '')) { $weight=1;