mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +02:00
Fix issue with multi-template settings not always updating the selectable columns on columns tab
This commit is contained in:
@@ -584,7 +584,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
||||
*/
|
||||
public function buildColumnsField() {
|
||||
|
||||
$fields = $this->template ? $this->template->fieldgroup : $this->wire('fields');
|
||||
$fields = $this->wire('fields');
|
||||
$options = $this->getSystemColumns();
|
||||
|
||||
/** @var InputfieldAsmSelect $f */
|
||||
@@ -1062,6 +1062,8 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
||||
$subname = '';
|
||||
if(strpos($name, '.')) list($name, $subname) = explode('.', $name);
|
||||
$field = $this->template ? $this->template->fieldgroup->getField($name, true) : $this->fields->get($name);
|
||||
if(!$field && $this->template) $field = $this->fields->get($name);
|
||||
|
||||
$label = $field ? $field->getLabel() : '';
|
||||
if(!$label) $label = isset($systemLabels[$name]) ? $systemLabels[$name] : $name;
|
||||
$icon = $field ? $field->getIcon(true) : '';
|
||||
|
Reference in New Issue
Block a user