Revision b4fc4933
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
274 | 274 |
|
275 | 275 |
if ($::request->is_ajax) { |
276 | 276 |
my $html = $self->render('requirement_spec/_header', { output => 0 }); |
277 |
return $self->js
|
|
277 |
return $self->invalidate_version
|
|
278 | 278 |
->replaceWith('#requirement-spec-header', $html) |
279 | 279 |
->flash('info', t8('The requirement spec has been saved.')) |
280 | 280 |
->render($self); |
... | ... | |
348 | 348 |
$self->disable_pagination if $report->{options}{output_format} =~ /^(pdf|csv)$/i; |
349 | 349 |
} |
350 | 350 |
|
351 |
sub invalidate_version { |
|
352 |
my ($self) = @_; |
|
353 |
|
|
354 |
my $rspec = SL::DB::RequirementSpec->new(id => $self->requirement_spec->id)->load; |
|
355 |
$rspec->invalidate_version; |
|
356 |
|
|
357 |
my $html = $self->render('requirement_spec/_version', { output => 0 }, requirement_spec => $rspec); |
|
358 |
return $self->js->html('#requirement_spec_version', $html); |
|
359 |
} |
|
360 |
|
|
361 |
|
|
351 | 362 |
1; |
Auch abrufbar als: Unified diff
Pflichtenheftversion nach Änderung Basisdaten invalidieren