mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 08:44:46 +02:00
Fix issue in ProcessPageEditLink when a FieldtypeFieldsetPage field is on the page
This commit is contained in:
@@ -373,8 +373,13 @@ class ProcessPageEditLink extends Process implements ConfigurableModule {
|
||||
}
|
||||
} else if(wireInstanceOf($type, 'FieldtypeRepeater')) {
|
||||
$value = $page->get($field->name);
|
||||
if($value) foreach($page->get($field->name) as $repeaterPage){
|
||||
$files = array_merge($this->getFilesPage($repeaterPage, $field->getLabel() . ': '), $files);
|
||||
if($value) {
|
||||
if($value instanceof Page) $value = array($value);
|
||||
if(WireArray::iterable($value)) {
|
||||
foreach($value as $repeaterPage) {
|
||||
$files = array_merge($this->getFilesPage($repeaterPage, $field->getLabel() . ': '), $files);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user