mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
Fix issue processwire/processwire-issues#1993
This commit is contained in:
@@ -571,6 +571,7 @@ class ProcessPageEditLink extends Process implements ConfigurableModule {
|
|||||||
*/
|
*/
|
||||||
protected function ___getFilesPage(Page $page, $prefix = '') {
|
protected function ___getFilesPage(Page $page, $prefix = '') {
|
||||||
$files = array();
|
$files = array();
|
||||||
|
if(!$page->id) return $files;
|
||||||
foreach($page->template->fieldgroup as $field) {
|
foreach($page->template->fieldgroup as $field) {
|
||||||
/** @var Fieldtype $type */
|
/** @var Fieldtype $type */
|
||||||
$type = $field->type;
|
$type = $field->type;
|
||||||
|
Reference in New Issue
Block a user