--- loncom/interface/spreadsheet/studentcalc.pm 2005/05/17 17:48:19 1.33 +++ loncom/interface/spreadsheet/studentcalc.pm 2005/08/26 20:46:46 1.35 @@ -1,5 +1,5 @@ # -# $Id: studentcalc.pm,v 1.33 2005/05/17 17:48:19 albertel Exp $ +# $Id: studentcalc.pm,v 1.35 2005/08/26 20:46:46 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -458,7 +458,7 @@ sub put_sequence_data_in_safe_space { # 1. duplicate titles - they get the total for the titles # 2. control characters in titles - use q{} around the string to # deal with it. - my $title = &HTML::Entities::decode($seq->{'title'}); + my $title = &HTML::Entities::decode($seq->title()); $title =~ s/&\#058;/:/g; if (@Rows) { $data .= 'push(@{$Sequence_Rows{"'.quotemeta($title).'"}},'. @@ -585,6 +585,7 @@ sub compute { sub set_row_sources { my $self = shift; + $self->check_formulas_loaded(); while (my ($cell,$value) = each(%{$self->{'formulas'}})) { next if ($cell !~ /^A(\d+)$/ || $1 < 1); my $row = $1; @@ -597,6 +598,7 @@ sub set_row_sources { sub set_row_numbers { my $self = shift; + $self->check_formulas_loaded(); while (my ($cell,$formula) = each(%{$self->{'formulas'}})) { next if ($cell !~ /^A(\d+)/); my $row = $1;