When a Page Preview module is used for a new node preview then a node og_is_group() which is called from the og_workflow_user_roles_for_node() return TRUE which is wrong. As a result we get an EntityMalformedException from the entity_extract_ids() function when try to get an OG user roles for the node by an og_get_user_roles().

Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 173 of includes/entity.inc).
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7721 of includes/common.inc).
CommentFileSizeAuthor
og_workflow_page_preview.patch421 bytesDimitrius
Support from Acquia helps fund testing for Drupal Acquia logo