From: Moritz Bunkus Date: Mon, 15 Jul 2013 16:00:30 +0000 (+0200) Subject: Pflichtenhefte: Beim einfügen Nummerierung neu vergeben X-Git-Tag: release-3.2.0beta~467^2~116 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=df59bbc2787510ed7108fc893b5703db23c7b3e5;p=kivitendo-erp.git Pflichtenhefte: Beim einfügen Nummerierung neu vergeben --- diff --git a/SL/Controller/RequirementSpecItem.pm b/SL/Controller/RequirementSpecItem.pm index 2cbf11447..feaa9ea53 100644 --- a/SL/Controller/RequirementSpecItem.pm +++ b/SL/Controller/RequirementSpecItem.pm @@ -407,7 +407,7 @@ sub determine_paste_position { sub assign_requirement_spec_id_rec { my ($self, $item) = @_; - $item->requirement_spec_id($::form->{requirement_spec_id}); + $item->assign_attributes(requirement_spec_id => $::form->{requirement_spec_id}, fb_number => undef); $self->assign_requirement_spec_id_rec($_) for @{ $item->children || [] }; return $item; @@ -448,7 +448,7 @@ sub action_ajax_paste { my ($new_parent_id, $insert_after) = $self->determine_paste_position; # Store result in database. - $self->item->update_attributes(requirement_spec_id => $::form->{requirement_spec_id}, parent_id => $new_parent_id); + $self->item->update_attributes(parent_id => $new_parent_id); $self->item->add_to_list(position => 'after', reference => $insert_after) if $insert_after; # Update the tree: create the node for all pasted objects.