- Issue created by @zcht
Unfortunately, I have discovered an error that is a bit unattractive. I use this module to convert nodes into groups. Each group has three different content types, from time to time it is necessary to convert the content type.
The conversion can only be done by the administrator, group users cannot perform this task. The conversion also works wonderfully, the existing fields are taken over and the new node type is displayed in the group, can be called up, BUT can no longer be edited by the creator of the node.
At first I thought it might be because this module changes the UID of the node, which fortunately is not the case. However, by chance I found out that the node type is not updated after the conversion in the group_content_field_data
table in the type
field.
There is an access check for groups, both must be TRUE, content type + UID. Now if another node type is called, but the group still has another node type, group returns a FALSE (unknown content not allowed to be accessed).
This can be easily reproduced by changing a node back to its original type. Afterwards, the user of the group can edit the node again without any problems.
For this, only the type would have to be taken into account during the conversion.
If so, the node type must be updated in the group_content_field_data
table in the type
field. The machine name of the node must match that of the group.
Ideally, this would be a patch.
Active
2.0
Code