GetLegendGraphic request not working with layer groups in workspace

Description

The GetLegendGraphic request is not working anymore for layer groups that are in a workspace.
My team suggested a correction and submitted this pull request : https://github.com/sogelink/geoserver/pull/1

Environment

None

Assignee

Unassigned

Reporter

Simon Chatillon

Triage

None

Fix versions

Affects versions

Priority

Highest
Configure