Revision df59bbc2
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpecItem.pm | ||
---|---|---|
407 | 407 |
sub assign_requirement_spec_id_rec { |
408 | 408 |
my ($self, $item) = @_; |
409 | 409 |
|
410 |
$item->requirement_spec_id($::form->{requirement_spec_id});
|
|
410 |
$item->assign_attributes(requirement_spec_id => $::form->{requirement_spec_id}, fb_number => undef);
|
|
411 | 411 |
$self->assign_requirement_spec_id_rec($_) for @{ $item->children || [] }; |
412 | 412 |
|
413 | 413 |
return $item; |
... | ... | |
448 | 448 |
my ($new_parent_id, $insert_after) = $self->determine_paste_position; |
449 | 449 |
|
450 | 450 |
# Store result in database. |
451 |
$self->item->update_attributes(requirement_spec_id => $::form->{requirement_spec_id}, parent_id => $new_parent_id);
|
|
451 |
$self->item->update_attributes(parent_id => $new_parent_id); |
|
452 | 452 |
$self->item->add_to_list(position => 'after', reference => $insert_after) if $insert_after; |
453 | 453 |
|
454 | 454 |
# Update the tree: create the node for all pasted objects. |
Auch abrufbar als: Unified diff
Pflichtenhefte: Beim einfügen Nummerierung neu vergeben