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
Interesting. So when you populate the blocks, you don't set their parent-id? How do you establish the relation to the pages?
The problem with your fix is, that it will probably never write the sortorder, since once the Block is written the $this->exists() check will return true.
I guess it makes more sense to reduce the check to SortOrder and ParentID then…
Hi, when trying to add Blocks using populate (https://github.com/dnadesign/silverstripe-populate) it crashes:
Somehow the Parent relation is added after creating it first?
Changing Block::onBeforeWrite to
fixes this problem locally.
The text was updated successfully, but these errors were encountered: