Revision e967690d
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpecItem.pm | ||
---|---|---|
205 | 205 |
|
206 | 206 |
$self->replace_bottom($self->item->parent) if $type eq 'sub-function-block'; |
207 | 207 |
|
208 |
$self->add_new_item_form_after_create if $type =~ m/function-block/; |
|
209 |
|
|
208 | 210 |
$self->invalidate_version->render($self); |
209 | 211 |
} |
210 | 212 |
|
... | ... | |
591 | 593 |
->focus("#${id_base}_description"); |
592 | 594 |
} |
593 | 595 |
|
596 |
sub add_new_item_form_after_create { |
|
597 |
my ($self, %params) = @_; |
|
598 |
|
|
599 |
my $created_item = $self->item; |
|
600 |
$self->item(SL::DB::RequirementSpecItem->new(requirement_spec_id => $created_item->requirement_spec_id, parent_id => $created_item->parent_id, item_type => $created_item->item_type)); |
|
601 |
|
|
602 |
$self->add_new_item_form( |
|
603 |
insert_position => 'insertAfter', |
|
604 |
insert_reference => $created_item->id, |
|
605 |
display_reference => '#' . $created_item->item_type . '-' . $created_item->id, |
|
606 |
); |
|
607 |
} |
|
608 |
|
|
594 | 609 |
sub add_function_block { |
595 | 610 |
my ($self, $new_type) = @_; |
596 | 611 |
|
Auch abrufbar als: Unified diff
Pflichtenhefte: nach Anlegen eines Funktionsblocks gleich nächste Anlege-Form anzeigen