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(); }