You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
toArray() returns []. Trying to get items also ends up empty.
Also noticed, that $page->getOriginal() all flexDirectory objects also have empty headers.
Tried to comment out two lines where unset($data['header']); happens in system/src/Grav/Common/Flex/Types/Pages/PageObject.php:229, but no luck
I'm a bit confused :) Did the fix get to v1.0.3 of Flex Objects which was released 02/17/2021 (according to changes in changelog)? Or will it be released with v1.0.4 after all?
In plugin's
onAdminSave
i need a header version of a page before save.dump($page->getOriginal()->header())
gives me:toArray()
returns[]
. Trying to get items also ends up empty.Also noticed, that
$page->getOriginal()
all flexDirectory objects also have empty headers.Tried to comment out two lines where
unset($data['header']);
happens in system/src/Grav/Common/Flex/Types/Pages/PageObject.php:229, but no luckFrontmatter before save looks like:
Might be related to #3098
The text was updated successfully, but these errors were encountered: