mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Fix issue in ProcessPageLister/ProcessPageListerPro where it wasn't allowing header click-to-sort on all columns where it was supported
This commit is contained in:
@@ -1257,7 +1257,13 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
|||||||
if($subfield === 'keys' || $subfield === 'xtra') return false;
|
if($subfield === 'keys' || $subfield === 'xtra') return false;
|
||||||
$fieldtype = $field->type;
|
$fieldtype = $field->type;
|
||||||
$schema = $fieldtype->getDatabaseSchema($field);
|
$schema = $fieldtype->getDatabaseSchema($field);
|
||||||
return isset($schema[$subfield]);
|
if(isset($schema[$subfield])) return true;
|
||||||
|
$selectorInfo = $fieldtype->getSelectorInfo($field);
|
||||||
|
if(isset($selectorInfo['input']) && $selectorInfo['input'] === 'page') {
|
||||||
|
if(isset($selectorInfo['subfields'][$subfield])) return true;
|
||||||
|
if($this->wire()->pages->loader()->isNativeColumn($subfield)) return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user