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
If a Contenttype uses an underscore (e.g. pages_en) this will cause issues with relations, because in Bolt\Legacy\Storage::getRelation() instead of the tablename the slug is being used. For contenttypes with an underscore this by default gets replaced by a dash.
Bolt Version: 3.2.2
Possible solution:
Change $contenttype = $content[util::array_first_key($content)]->contenttype['slug']
to $contenttype = $content[util::array_first_key($content)]->contenttype['tablename']
The text was updated successfully, but these errors were encountered:
If a Contenttype uses an underscore (e.g. pages_en) this will cause issues with relations, because in Bolt\Legacy\Storage::getRelation() instead of the tablename the slug is being used. For contenttypes with an underscore this by default gets replaced by a dash.
Bolt Version: 3.2.2
Possible solution:
Change
$contenttype = $content[util::array_first_key($content)]->contenttype['slug']
to
$contenttype = $content[util::array_first_key($content)]->contenttype['tablename']
The text was updated successfully, but these errors were encountered: