From f5c9b0d42e28a705fcbcda11290ef3a22e15352e Mon Sep 17 00:00:00 2001 From: Majstor <76176291+wmdhosting@users.noreply.github.com> Date: Tue, 26 Mar 2024 18:42:10 +0200 Subject: [PATCH] Update SectionField.php --- src/fields/SectionField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fields/SectionField.php b/src/fields/SectionField.php index ce8ccf0..71a3ed4 100644 --- a/src/fields/SectionField.php +++ b/src/fields/SectionField.php @@ -103,7 +103,7 @@ private function getSections() private function getSectionsHandles() { $sections = []; - $editableSections = Craft::$app->getSections()->getEditableSections(); + $editableSections = Craft::$app->getEntries()->getEditableSections(); if (!empty($editableSections)) { foreach ($editableSections as $section) {