Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when user is part of multiple groups #87

Open
tapashdatta opened this issue Nov 20, 2020 · 4 comments
Open

Issue when user is part of multiple groups #87

tapashdatta opened this issue Nov 20, 2020 · 4 comments

Comments

@tapashdatta
Copy link

I am on civicrm 5.31

I have 7 layouts setup within the editor.

It was all working fine and suddenly stopped saving any changes when I had to edit a layout, move the order etc.

The layout doesnt save anymore unless I delete all layout and re create all of them. I have experienced in even on earlier versions of Civi.

@colemanw
Copy link
Member

Can you check in your browser console for any error messages when hitting the save button?

@tapashdatta
Copy link
Author

@colemanw
The only error I see is "The requested URL "/sites/default/files/js/angular.js" was not found on this server"
"The requested URL "/sites/default/files/js/angular.min.js.map was not found on this server"

But It vanished next time I reloaded the page.

@tapashdatta
Copy link
Author

tapashdatta commented Nov 21, 2020

@colemanw I have tracked it down to the order of the "layout".
Settings are saved normally.
But if a user group has multiple roles with different drupal roles permission, when the order of layout changed, the item vanishes/appears. I am not sure how the extension decides which role takes precedence. But as a general rule, I would expect that the layout is shown considering the combination of roles/groups the user has.

EDIT: In this case, if a user id part of "Donor" and "CDT" layout, and they have different layout setup here, but in his civi contact profile he is part of Donor & CDT civi group, he sees items in contact profile depends on the order of the "Layout"

Screenshot 2020-11-21 at 09 56 23

@tapashdatta tapashdatta changed the title Settings doesn't save Issue when user is part of multiple groups Nov 21, 2020
@colemanw
Copy link
Member

@tapashdatta your description of this issue made it sound like the admin screen was failing to save layout data.
But your latest comment makes it sound like a simple misunderstanding about how layouts take precedence.
To clarify, the layouts are prioritized top to bottom. As it says in the readme:

When a user views a contact, the first layout in the list which meets the "Show" and "To" criteria will be shown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants