From 7796807d194d2645ede2a41ea03050df097fc9d9 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 25 Feb 2022 11:46:35 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1532 --- wire/core/Fieldgroups.php | 1 + wire/core/Templates.php | 1 + 2 files changed, 2 insertions(+) diff --git a/wire/core/Fieldgroups.php b/wire/core/Fieldgroups.php index 8a50c170..de5ce983 100644 --- a/wire/core/Fieldgroups.php +++ b/wire/core/Fieldgroups.php @@ -75,6 +75,7 @@ class Fieldgroups extends WireSaveableItemsLookup { * */ public function getAll() { + if($this->useLazy()) $this->loadAllLazyItems(); return $this->getWireArray(); } diff --git a/wire/core/Templates.php b/wire/core/Templates.php index 133b6e8d..2b4dfc4b 100644 --- a/wire/core/Templates.php +++ b/wire/core/Templates.php @@ -83,6 +83,7 @@ class Templates extends WireSaveableItems { * */ public function getAll() { + if($this->useLazy()) $this->loadAllLazyItems(); return $this->getWireArray(); }