Groups now ignore subgroups for type-checking to know which tabs should appear
Groups now ignore subgroups for type-checking to know which tabs should appear
Description
While investigating whether or not the dev version (on demo-dev.fusiondirectory.org) addressed the bug in issue #5657, I found that groups are still behaving in ways that are undesirable. 1) "Groups of groups" cannot have mail attributes assigned to them, and 2) existing groups that have mail attributes assigned have them deleted when a group is assigned as a member.
Distribution Name and Version
Unsure - generated issue on demo-dev.fusiondirectory.org.
FusionDirectory Version
1.3-dev
PHP version used
Unsure - generated issue on demo-dev.fusiondirectory.org.
Origin of php packages
Unsure - generated issue on demo-dev.fusiondirectory.org.
Steps to Reproduce
These are my steps to reproduce on the demo-dev.fusiondirectory.org server, starting from the "clean" setup, as the admin user.
- Add "IMAP/POP3 generic service" to the demo-dev server object.
- Create a group called "innergroup", assigning any user as a group member. Click OK to return to the group menu, then click on the new group to edit.
- Assign mail settings to this group, using innermail@test.org as the email address.
- This validates that issue #5657 is apparently addressed.
- Create a group called "outergroup", assigning innergroup as the group member. Click OK to return to the group menu, then click on the new group to edit.
- Notice the lack of "Mail" and "Partage" tabs, confirming the first part of this new issue.
- Change the group membership to only include a single user, removing innergroup. Click "Apply".
- Assign mail settings to this group, using outermail@test.org as the email address. Click OK to return to the group menu, then back into "outergroup" to edit. See that the mail settings are still there.
- Re-add innergroup to the member objects. As soon as it is selected, the "Mail" and "Partage" tabs disappear.
- Click OK or Apply to receive the message: "The object has changed since opened in FusionDirectory. All changes that may be done by others will get lost if you save this entry!" Close the modal window and click Cancel.
- Re-open outergroup, and check the mail settings to confirm that these settings have been deleted without an opportunity to abort the operation.
Expected behavior:
Groups of groups should be allowed to have email address assigned. Mail tab should stay present. At a minimum, mail settings should not be erased without warning and a way to back out.
Actual behavior:
Mail settings 1) cannot be applied or 2) get deleted, as discussing in reproduction steps.
Reproduces how often: 100% of the time when reproduction steps are followed.