Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove dead code

Christophe Bliard3afb9b4a5758
diff --git a/modules/backlogs/config/locales/en.yml b/modules/backlogs/config/locales/en.yml
index d69c78bc9ee..5d755a6d36a 100644
--- a/modules/backlogs/config/locales/en.yml
+++ b/modules/backlogs/config/locales/en.yml
@@ -45,7 +45,6 @@ en:
can_only_contain_work_packages_of_current_sprint: "can only contain IDs of work packages in the current sprint."
must_block_at_least_one_work_package: "must contain the ID of at least one ticket."
parent_id:
- parent_child_relationship_across_projects: "is invalid because the work package '%{work_package_name}' is a backlog task and therefore cannot have a parent outside of the current project."
type_must_be_one_of_the_following: "Type must be one of the following: %{type_names}."
version_id:
task_version_must_be_the_same_as_story_version: "must be the same as the parent story's version."
diff --git a/modules/backlogs/spec/contracts/work_packages/base_contract_spec.rb b/modules/backlogs/spec/contracts/work_packages/base_contract_spec.rb
index 9c84e2d4cbc..3564c5d6344 100644
--- a/modules/backlogs/spec/contracts/work_packages/base_contract_spec.rb
+++ b/modules/backlogs/spec/contracts/work_packages/base_contract_spec.rb
@@ -380,14 +380,6 @@ describe WorkPackages::BaseContract, type: :model do
end
describe 'parent has to be in same project' do
- shared_examples_for 'is invalid and notes the error' do
- it 'is invalid and notes the error' do
- expect(subject).to be_falsey
- expect(instance.errors.symbols_for(:parent_id))
- .to match_array([:parent_child_relationship_across_projects])
- end
- end
-
shared_examples_for 'project id unrestricted by parent' do
describe 'WITH the parent having a different project' do
before do