+
+ # If the current requirement spec has versions and the
+ # customer's been changed, then the customer of all the versions
+ # has to be changed, too.
+ if ( !$is_new
+ && !$self->requirement_spec->is_template
+ && ($previous_customer_id != $self->requirement_spec->customer_id)) {
+ SL::DB::Manager::RequirementSpec->update_all(
+ set => { customer_id => $self->requirement_spec->customer_id },
+ where => [ working_copy_id => $self->requirement_spec->id ],
+ );
+ }