If one edits an already existing workspace and hits save, then a new vocabulary is created each time, and thus all the links and connections to the previous main vocabulary and to its created classes and properties are lost, even if the user didn't mean to change them.

When we click on edit on the workspace node, it doesn't automatically populate the Main Vocabulary field, Namespace URI field and other vocabulary entity fields, which is because we had taken these fields from the vocabulary form using drupal_get_form().

Workspace node edit can be disabled as a temporary fix but then there would be a problem if anyone wants to add more authors to the Workspace.

Comments

cygri’s picture

I guess that the $form_state array also needs to be updated in neologism_form_workspace_node_form_alter? Load the main vocabulary node and copy its field values into that array? (This is a totally blind guess.)