U4-8859 - Query Builder gives wrong selection when not choosing from first site

Created by Douglas Robar 17 Aug 2016, 07:52:00 Updated by Sebastiaan Janssen 04 Sep 2017, 09:33:03

Subtask of: UAASSCRUM-810

With a multi-site content tree (such as a classic multi-lingual website) such as the following:

CONTENT

  • en
    • Products
    • News
      • news 1
      • news 2
  • fr
    • Le Products
    • Le News
      • ooh la la 1
      • ooh la la 2

Using the Query builder and choosing the French Le news page, the wrong selection query is generated, which won't return any results: CurrentPage.Site().Children("newsItem").Where("Visible")

But when choosing the English News page (the first site in the content tree) it works correctly and generates this query:: CurrentPage.Site().FirstChild("newsArea").Children("newsItem").Where("Visible")

Comments

Douglas Robar 12 Apr 2017, 20:30:45

Testing with 7.6RC...

You get a correct query for the first site: Model.Content.Site().FirstChild("newsArea").Children("newsItem").Where(x => x.IsVisible())

But you get a big red 'Failed to retrieve query' error when selecting the second language's site. Nothing in the log though.


Priority: Normal

Type: Bug

State: Open

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.0, 7.4.3

Due in version:

Sprint:

Story Points:

Cycle: