My first attempt to use organic groups went fine. I was able to use Configuration > Organic Groups > Roles Overview > My Group > edit to change the roles for my group type. The problem occurred when I tried to add another organic group type and to do the same thing. When I click on Configuration > Organic Groups > Roles Overview > My Group > edit (for the new group type), rather than being taken to a screen that lists my new group type's (default) roles, as expected, my screen refreshes and I end up back on the same screen (listing my available group types). I thus cannot change the roles of the new group type I'm trying to set up.

I've poked around in the code (not really a PHP programmer) and in the database to try to figure out what's going on, but I do not "see it" yet. I've contributed a few minor bug fixes back to Drupal over the last few weeks as I've needed to get my site working, but the OG set-up is a little much for me to grok at the moment. What could cause the behavior I'm seeing? The problem has not killed my web site, so it's not critical, but it's blocking progress in my project, so I have marked it as major. If others are experiencing it (I don't see evidence of that) then perhaps it is critical. In any case, thank you, if you're a developer and/or familiar with the OG internals, for any insight you can provide as to causes and remedies for what I'm experiencing.

CommentFileSizeAuthor
#5 underscore_links-2175713.patch4.06 KBshushu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kevinsullivan’s picture

Issue summary: View changes
shushu’s picture

Please describe the scenario step by step, with the links you are using, and I will be happy to reproduce it and try to help.

kerasai’s picture

Category: Support request » Bug report

@kevinsullivan @shushu,

What are the machine names of the content types you're using? I'm noticing that the roles config page is not working for content types with underscores in the machine name. The path to the config page is constructed using the machine name with underscores swapped-out for hyphens.

Here are some details from my case:

admin/config/group/roles/node/school

Path Note Result
admin/config/group/roles/node/school Actual machine name Works
admin/config/group/roles/node/high_school Actual machine name Fails
admin/config/group/roles/node/high-school _ replaced with - Words

This makes me think there's some bug due to the links generated in the admin hub screens not matching the paths that are provided for the management screens.

shushu’s picture

Title: Configuration > Organic Groups > Roles Overview > My Group > edit ===> Nothing » Wrong roles configuration link when group type contains underscore
Assigned: Unassigned » shushu
Priority: Major » Normal

Thanks for clarifying the issue.
The scenario I was able to reproduce:
1. Create a content type with underscore in the machine name (I used "alef_bet") and define it as a group.
2. Try to configure its roles via admin/config/roles.
The link in the Edit operation is to admin/config/group/roles/node/alef_bet instead of admin/config/group/roles/node/alef-bet

While working on this scenario I also encountered several cases similar to what @kevinsullivan saw. I will try to reproduce it again and separate the issue into (at least) two issues.

shushu’s picture

Version: 7.x-2.4 » 7.x-2.x-dev
Status: Active » Needs review
FileSize
4.06 KB