Revision bebdc2ce
Von Moritz Bunkus vor etwa 3 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
1702 | 1702 |
$self->link_requirement_specs_linking_to_created_from_objects(@converted_from_oe_ids); |
1703 | 1703 |
} |
1704 | 1704 |
|
1705 |
$self->set_project_in_linked_requirement_specs if $self->order->globalproject_id; |
|
1706 |
|
|
1705 | 1707 |
$self->save_history('SAVED'); |
1706 | 1708 |
|
1707 | 1709 |
1; |
... | ... | |
2328 | 2330 |
} |
2329 | 2331 |
} |
2330 | 2332 |
|
2333 |
sub set_project_in_linked_requirement_specs { |
|
2334 |
my ($self) = @_; |
|
2335 |
|
|
2336 |
my $rs_orders = SL::DB::Manager::RequirementSpecOrder->get_all(where => [ order_id => $self->order->id ]); |
|
2337 |
foreach my $rs_order (@{ $rs_orders }) { |
|
2338 |
next if $rs_order->requirement_spec->project_id == $self->order->globalproject_id; |
|
2339 |
|
|
2340 |
$rs_order->requirement_spec->update_attributes(project_id => $self->order->globalproject_id); |
|
2341 |
} |
|
2342 |
} |
|
2343 |
|
|
2331 | 2344 |
1; |
2332 | 2345 |
|
2333 | 2346 |
__END__ |
Auch abrufbar als: Unified diff
Auftrag: Projekt automatisch in verknüpftem Pflichtenheft eintragen