Skip to content

Current community no longer appears at the top of the list when adding a sub-community #4564

@ddean4040

Description

@ddean4040

Describe the bug

When adding a sub-community in 7.6.2 and earlier, if the user was on a community page that community would be at the top of the "Create a new community in" list. As of 7.6.3 this is not the case and the list is just alphabetical.

When adding a collection, the current community is still at the top of the list.

This can also be seen in the 9.1 snapshot on https://demo.dspace.org/

When adding a collection, an additional REST call is made before the community list, to load the current community. This REST call was also made when adding a community in 7.6.2 and earlier.

To Reproduce

Steps to reproduce the behavior:

  1. Log in as a user with the ability to create communities
  2. Browse to an existing community
  3. Click New -> Community from the sidebar
  4. The "Create a new community in" list does not start with the current community

Expected behavior

The current community should be at the top of the list, as it is when adding a collection.

Related work

Link to any related tickets or PRs here.

Metadata

Metadata

Assignees

Labels

affects: 7.xIssue impacts 7.x releasesaffects: 8.xIssue impacts 8.x releasesaffects: 9.xIssue impacts 9.x releasesaffects: mainIssue impacts "main" (latest release).bugcomponent: Discoveryrelated to discovery search or browse system

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions