From df59bbc2787510ed7108fc893b5703db23c7b3e5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 15 Jul 2013 18:00:30 +0200 Subject: [PATCH] =?utf8?q?Pflichtenhefte:=20Beim=20einf=C3=BCgen=20Nummeri?= =?utf8?q?erung=20neu=20vergeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/RequirementSpecItem.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.20.1