Skip to content

Commit

Permalink
Update SectionField.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wmdhosting authored Mar 26, 2024
1 parent 1832a84 commit f5c9b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/SectionField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f5c9b0d

Please sign in to comment.