mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 09:44:38 +02:00
Fix issue processwire/processwire-issues#1437
This commit is contained in:
@@ -1567,6 +1567,9 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
|||||||
} else if(strpos($name, '.data') && preg_match('/\.data(\d+)$/', $name, $matches)) {
|
} else if(strpos($name, '.data') && preg_match('/\.data(\d+)$/', $name, $matches)) {
|
||||||
// i.e. title.data1234 or categories.title.data1234
|
// i.e. title.data1234 or categories.title.data1234
|
||||||
$language = $languages->get((int) $matches[1]);
|
$language = $languages->get((int) $matches[1]);
|
||||||
|
} else {
|
||||||
|
// no language identified in field name
|
||||||
|
$language = $this->wire()->user->language;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(!wireInstanceOf($field->type, 'FieldtypeLanguageInterface')) return null;
|
//if(!wireInstanceOf($field->type, 'FieldtypeLanguageInterface')) return null;
|
||||||
|
Reference in New Issue
Block a user