-
-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlockGroup fields are not initialized on load #836
Comments
Hi Håkan! Is this why my page doesn't save when my Custom BlockGroup has a field on it? I get a console error in the browser... Uncaught TypeError: Cannot set property 'visible' of undefined Cheers! Adam |
If you’re getting the error saving an existing block that you’ve added fields to but not if you create a new block it’s this error. To verify, create a new page and add the block group to it. If it saves ok then it’s the above error |
Thanks Håkan, I tried with an existing block group and the field doesn't show at all. I then created a new page and added the block group. The field then showed, but the page wouldn't save correctly and I got the console error as outlined above. Perhaps its something wrong with my setup of the Block and BlockGroup... When I expand out the console error it takes me to the following JS and its on the
My Block Group class is as follows
and my Block class is as follows...
The Block works fine independently of the Block Group. The Group also works if I comment out the Title field, but not with it included I feel like I followed the docs 100% but I still must be missing something Many Thanks Adam |
Håkan please ignore the comment above - I solved my issue by updating Piranha.Manager to 7.0.4 Cheers Adam |
This means that when adding new fields to existing Block Groups the fields are not initialized when loading an existing group.
The text was updated successfully, but these errors were encountered: