--- loncom/interface/spreadsheet/studentcalc.pm 2006/05/30 12:46:26 1.40 +++ loncom/interface/spreadsheet/studentcalc.pm 2006/12/21 02:54:19 1.42 @@ -1,5 +1,5 @@ # -# $Id: studentcalc.pm,v 1.40 2006/05/30 12:46:26 www Exp $ +# $Id: studentcalc.pm,v 1.42 2006/12/21 02:54:19 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -400,6 +400,8 @@ sub modify_cell { $self->set_formula($cell,$formula); } elsif ($cell !~ /^([A-z](\d+)|template_[A-z])$/) { return; + } else { + $self->set_formula($cell,$formula); } $self->rebuild_stats(); return; @@ -552,7 +554,7 @@ sub compute { } $self->initialize_safe_space(); &Apache::assesscalc::initialize_package($self->{'name'},$self->{'domain'}, - $navmap); + $navmap,$self); my %f = $self->formulas(); # # Process the formulas list -