Open
Description
Short description of the issue
$languages->find
includes hidden languages in the returned PageArray
.
Expected behavior
It should not include hidden languages, just like $pages->find
.
Actual behavior
It includes hidden languages.
Steps to reproduce the issue
- Enable multi-language support.
- Create multiple languages.
- Go to the Settings tab of one such language and click on "Hidden".
- Run
$foo = $languages->find('name=XYZ')
, whereXYZ
is the name of the hidden language from step 3. - Observe that it returns a
PageArray
with the hidden language, by runningecho $foo->first->name . ',' . intval($foo->first->isHidden())
.
Setup/Environment
- ProcessWire version: 3.0.227
- (Optional) PHP version: 8.3.9
- (Optional) MySQL version: 11.4.2-MariaDB