FindPagesWithCriteria doesn't return pages without specifying a language branch

Vote:
 

Hi

Why may

 PageCriteriaQueryService.FindPagesWithCriteria(basePage, criteria);

return the empty collection while

PageCriteriaQueryService.FindPagesWithCriteria(basePage, criteria, languageBranch.LanguageID);

returns pages correctly?

#195703
Edited, Aug 05, 2018 19:08
Vote:
 
PageCriteriaQueryService.FindPagesWithCriteria(basePage, criteria, null, LanguageSelector.AutoDetect(true));

solved the issue

#195705
Aug 06, 2018 7:35
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.