mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 16:54:44 +02:00
Fix issue processwire/processwire-issues#1658 using solution suggested by @netcarver
This commit is contained in:
@@ -992,7 +992,7 @@ class ProcessModule extends Process {
|
|||||||
$sectionsQty[$section]++;
|
$sectionsQty[$section]++;
|
||||||
|
|
||||||
}
|
}
|
||||||
$out .= $table->render();
|
$out .= $table ? $table->render() : '';
|
||||||
|
|
||||||
if($options['allowSections']) {
|
if($options['allowSections']) {
|
||||||
$out .= "</div>";
|
$out .= "</div>";
|
||||||
|
@@ -1589,7 +1589,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
|||||||
|
|
||||||
} else if($name === 'template') {
|
} else if($name === 'template') {
|
||||||
// template label or name
|
// template label or name
|
||||||
$allowName = $this->useColumnLabels ? trim($this->get('sort'), '-') === 'template' : true;
|
$allowName = $this->useColumnLabels ? trim((string) $this->get('sort'), '-') === 'template' : true;
|
||||||
$t = $p->template;
|
$t = $p->template;
|
||||||
$value = $t->getLabel();
|
$value = $t->getLabel();
|
||||||
// include template name only if it differs from template label
|
// include template name only if it differs from template label
|
||||||
|
Reference in New Issue
Block a user