Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
From http://drupal.org/node/1902086#comment-7078416:
We need to find a scalable way, to allow it to work on every widget type.
I had an idea that we can also use ER-prepopualte, and letting the widget add groups passed via url, that user has access to. Like this we don't need to iterate over each group. The problem is what to do with node edit...
Patch Er_prepopulate with #1944618: Allow getting values without validation
Comment | File | Size | Author |
---|---|---|---|
#3 | 1943834-og-create-3.patch | 3.18 KB | amitaibu |
Comments
Comment #1
amitaibuWork is done in branch
1943834
Comment #2
amitaibuSee #1944618: Allow getting values without validation
Comment #3
amitaibuWhen testing make sure to patch ER-prepopulate as-well.
Comment #4
amitaibuCommitted.
Comment #6
David4514 CreditAttribution: David4514 commentedSegment Fault on adding OG content after this patch applied
I'm leaving on a trip in a few hours so my investigation must wait. After updating OG to 7.x-2.x today (dev version) I started getting segment faults when attempting to add new og content. I have chased it down to the above patch, but not to what in the patch is causing the problem. Since I have not yet chased this down to the point that I know that I'm not the cause of the problem, I chose not to yet set the status back to needs work. The only error I have found so far in the logs is the segment fault.
Ubuntu - PHP: 5.3.6-13ubuntu3.9
[EDIT] This appears to be an infinite recursive loop in OgSelectionHandler.class.php. Function getGidsForCreate line 189:
if (!$ids = entityreference_prepopulate_get_values($this->field, $this->instance, TRUE, FALSE))
causes function buildEntityFieldQuery to be driven which invokes getGidsForCreate a couple of times each invoking buildEntityFieldQuery.... until the segment fault.
Sorry... but I really must leave now!
[Edit] I have returned... I cannot find any problem with my setup. I have created a new issue to track this #1966818: Segmentation Fault after Commit aa258c1 (Issue 1943834) when adding OG content
Comment #6.0
David4514 CreditAttribution: David4514 commentedUpdated issue summary.