mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 10:45:54 +02:00
Fix issue in ProcessPageLister where subfields could be incorrectly linked show page actions when clicked on, but only if the first column showed a subfield from the same field
This commit is contained in:
@@ -1447,6 +1447,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
protected function buildListerTableCol(Page $p, array $fields, $name, $value = null) {
|
protected function buildListerTableCol(Page $p, array $fields, $name, $value = null) {
|
||||||
|
static $lastPageId = 0;
|
||||||
if($value) {} // ignore, used by ListerPro only
|
if($value) {} // ignore, used by ListerPro only
|
||||||
|
|
||||||
$sanitizer = $this->wire()->sanitizer;
|
$sanitizer = $this->wire()->sanitizer;
|
||||||
@@ -1468,7 +1469,8 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
|||||||
if($name == 'config' || $subname == 'config') return 'Not allowed';
|
if($name == 'config' || $subname == 'config') return 'Not allowed';
|
||||||
|
|
||||||
reset($fields);
|
reset($fields);
|
||||||
$isFirstCol = key($fields) == $name;
|
$isFirstCol = $p->id != $lastPageId; // key($fields) == $name;
|
||||||
|
$lastPageId = $p->id;
|
||||||
|
|
||||||
/** @var Field $field */
|
/** @var Field $field */
|
||||||
$field = isset($fields[$name]) ? $fields[$name] : $this->wire('fields')->get($name);
|
$field = isset($fields[$name]) ? $fields[$name] : $this->wire('fields')->get($name);
|
||||||
|
Reference in New Issue
Block a user