Skip to content

XWIKI-23354: The #documentTree($option) is broken when using the showTerminalPages=false #4360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Farcasut
Copy link
Contributor

@Farcasut Farcasut commented Jul 3, 2025

Jira URL

https://jira.xwiki.org/browse/XWIKI-23354

Changes

Description

Updated the alias of the XWikiSpace table to spaces instead of page, to match the alias used in the filters.

Clarifications

When we do not want to show terminal documents, we reach this else branch. The query created is:

select reference, 0 as terminal from XWikiSpace page order by lower(name), name

where the alias of XWikiSpace is page. Below, we add some filters and the ChildPageFilter uses space as the alias for the table:

and because of this the query fails.

Screenshots & Video

Executed Tests

Expected Merging Strategy

  • Prefers squash: Yes
  • Backport on branches: 16.10.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant