Download & Extend

og_mandatory does not seem to work with og-enabled modules...

Project:Organic Groups Mandatory Group
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hello there,

As far as I can tell, og_mandatory does not work with og-enabled modules. It only seems to work with groups of type "og"... is that true? If so, would it be possible to fix that?

Thanks in advance,

Leo

Comments

#1

Project:Organic groups» Organic Groups Mandatory Group
Version:master»
Component:og.module» Code

moving to proper Project. fyi, i'm not working on this.

#2

I'll take a look at the code when I have the chance. Killes wrote most of the code- I just finished the 4.7 conversion, so I don't have an immediate answer. It's quite possible that it only looks at groups of type "og" since it was written before the additional node type functionality was finalized.

#3

Status:active» needs review

Ok, try the attached patch- I think the problem is just this one JOIN statement. (note I haven't tested this myself yet)

AttachmentSize
all_og_types_patch.txt 1.08 KB

#4

minimally test the patch now- seems to work as expected. Please confirm that it functions in your environment.

#5

+1 Patch works as expected. Module doesn't work for me without it.

#6

Status:needs review» reviewed & tested by the community

Ok, I'll commit this change barring any howls of protest.

#7

Status:reviewed & tested by the community» fixed

Changes commited to HEAD and 4-7 branches.

#8

Status:fixed» closed (fixed)
nobody click here