Pflichtenheft-Kostenschätzung: nach Speichern Eingabefelder verstecken
[kivitendo-erp.git] / SL / Controller / RequirementSpec.pm
index 2a64136..484d8f2 100644 (file)
@@ -140,7 +140,8 @@ sub action_ajax_save_time_and_cost_estimate {
   $self->requirement_spec(SL::DB::RequirementSpec->new(id => $self->requirement_spec->id)->load);
 
   my $html = $self->render('requirement_spec/_show_time_and_cost_estimate', { output => 0 });
-  $self->js->replaceWith('#time_cost_estimate', $html);
+  $self->js->replaceWith('#time_cost_estimate', $html)
+           ->hide('#time_cost_estimate_form_container');
 
   if ($self->visible_section) {
     $html = $self->render('requirement_spec_item/_section', { output => 0 }, requirement_spec_item => $self->visible_section);