LayerGroup chooser in the LayerGroup page suggests LGs from other workspaces

Description

Use case:

1. Create a workspace "A"
2. Create a Layer Group "LGA" (in workspace A)
3. Create a workspace "B"
4. Create a Layer Group "LGB"
5. Select workspace B
6. Select "Add Layer Group..."
7. The LGA layergroup is displayed and can be selected
8. Save
9. The Save fails with the error:

Layer group within a workspace (B) can not contain resources from other workspace: A

Environment

None

Status

Assignee

Unassigned

Reporter

Gnafu

Triage

Fix versions

Affects versions

Components

Priority

Low
Configure