Hi Dan,
This error is most likely caused by the tabID not being passed to the edit page of the module and thus the roles associated with the child portal are not kept because without the TabID DNN has no way of knowing which portal you were on.
Check that and see if TabID is in the URL.
Cheers
Philip Beadle (MVP, MCAD,
DotNetNuke Core Team)