Revision 31ead75c
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
234 | 234 |
sub action_select_template_to_paste { |
235 | 235 |
my ($self) = @_; |
236 | 236 |
|
237 |
my @templates = grep { @{ $_->sections } || @{ $_->text_blocks } } @{ SL::DB::Manager::RequirementSpec->get_all(where => [ is_template => 1 ], sort_by => 'lower(title)') }; |
|
237 |
my @templates = @{ SL::DB::Manager::RequirementSpec->get_all( |
|
238 |
where => [ is_template => 1, SL::DB::Manager::RequirementSpec->not_empty_filter ], |
|
239 |
sort_by => 'lower(requirement_specs.title)', |
|
240 |
) }; |
|
238 | 241 |
$self->render('requirement_spec/select_template_to_paste', { layout => 0 }, TEMPLATES => \@templates); |
239 | 242 |
} |
240 | 243 |
|
... | ... | |
253 | 256 |
$self->render_first_pasted_section_as_list($result{sections}->[0]); |
254 | 257 |
} |
255 | 258 |
|
259 |
my $parts_list = $self->render('requirement_spec_part/show', { output => 0 }); |
|
260 |
$self->js |
|
261 |
->replaceWith('#additional_parts_list_container', $parts_list) |
|
262 |
->show( '#additional_parts_list_container') |
|
263 |
->remove( '#additional_parts_form_container'); |
|
264 |
|
|
256 | 265 |
$self->invalidate_version->render($self); |
257 | 266 |
} |
258 | 267 |
|
Auch abrufbar als: Unified diff
Pflichtenhefte: beim Kopieren, Einfügen zusätzliche Artikel berücksichtigen