Hi devs,
I opened
http://jira.xwiki.org/browse/XWIKI-7942 (thanks to Anca). I'd
like to change the behaviour of the SheetManager to return the sheet
specified on the request only if the passed document is the requested
document. This was my initial intention when I introduced the
parameter but I overlooked the fact that it will be used 'recursively'
for all included/displayed documents within a sheet. I don't see any
real use case for the current behaviour so I'm considering it a bug.
If someone is relying on this behaviour or sees a use case for it then
please speak.
Thanks,
Marius