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

Merge branch 'release/12.1' into dev

ulferts834ce500b5fe
diff --cc frontend/src/app/shared/components/project-include/insert-in-list.ts
index ccecf816c9d,b725af545f8..ec65a972f10
--- a/frontend/src/app/shared/components/project-include/insert-in-list.ts
+++ b/frontend/src/app/shared/components/project-include/insert-in-list.ts
@@@ -1,7 -1,9 +1,9 @@@
import { IProject } from 'core-app/core/state/projects/project.model';
import { IHalResourceLink } from 'core-app/core/state/hal-resource';
-import { IProjectData } from './project-data';
+import { IProjectData } from '../project-list/project-data';
+ const UNDISCLOSED_ANCESTOR = 'urn:openproject-org:api:v3:undisclosed';
+
// Helper function that recursively inserts a project into the hierarchy at the right place
export const insertInList = (
projects:IProject[],
diff --cc spec/features/work_packages/project_include/project_include_shared_examples.rb
index ed5a91b7e05,7a4e9fc8609..e921b3ddbe5
--- a/spec/features/work_packages/project_include/project_include_shared_examples.rb
+++ b/spec/features/work_packages/project_include/project_include_shared_examples.rb
@@@ -433,15 -439,7 +439,15 @@@ shared_examples 'has a project include
dropdown.expect_checkbox(another_sub_sub_project.id)
dropdown.expect_checkbox(project.id, true)
dropdown.expect_checkbox(sub_project.id)
- dropdown.expect_checkbox(sub_sub_project.id)
+ dropdown.expect_checkbox(sub_sub_sub_project.id)
end
end
+
+ it 'keeps working even when there are no results (regression #42908)' do
+ dropdown.expect_count 1
+ dropdown.toggle!
+ dropdown.expect_open
+ dropdown.search 'Nonexistent'
+ expect(page).to have_no_selector("[data-qa-selector='op-project-include--loading']")
+ end
end