When a user who is restricted to a certain congregation
edits a roster
in which people from OTHER congregations have been assigned to roles,
those persons are not shown in the applicable dropdown boxes
(because they are invisible to the current user).
The dropdown boxes are thus empty
and when they save the roster, the old data is wiped.
This is not so much a bug as an undesired behaviour.
Note that the issue is the visibility of the PEOPLE, not the user's lack of access to the congregation to which the ROLE belongs (although that tends to coincide because people are frequently allocated to their own congregation's roles - but not always).
Brainstorming solutions:
Detect when there are invisible people assigned to a role+date and make that cell read-only.
Somehow make the assignee's names not invisible at that point - they could "peek out from behind the curtain".
Only allow non-restricted users to edit roster assignments
When a user who is restricted to a certain congregation edits a roster in which people from OTHER congregations have been assigned to roles, those persons are not shown in the applicable dropdown boxes (because they are invisible to the current user). The dropdown boxes are thus empty and when they save the roster, the old data is wiped.
This is not so much a bug as an undesired behaviour.
Note that the issue is the visibility of the PEOPLE, not the user's lack of access to the congregation to which the ROLE belongs (although that tends to coincide because people are frequently allocated to their own congregation's roles - but not always).
Brainstorming solutions: