The name of the form_checkboxes is 'roles'. However, the node object has a property also called 'roles' which is represents the roles the current user belongs to.

This conflict causes random boxes to be checked when a user edits a mail node that has already been sent.

The bug is easily corrected by giving the checkboxes a new name, like 'roles_selection', and then substituting code in the module that reads '$node->roles' with '$node->roles_selection'.

Comments

nedjo’s picture

Thanks, change made.

Anonymous’s picture