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.
I have a table "feeds_data_organic_groups_blog_importer" where parentog_groups is set to 1 even though the feed_nid has a group_nid of 3436
When I run:
SELECT group_nid, parentog_groups
FROM node
LEFT JOIN og_ancestry og ON node.nid = og.nid
LEFT JOIN feeds_data_organic_groups_blog_importer ON node.nid = feed_nid
WHERE `type` = 'feed';
I expect group_nid and parentog_groups to be the same but they are not. I suspect something is wrong in the mapper for the source "Feed node: Organic group(s)"
Comment | File | Size | Author |
---|---|---|---|
#2 | feeds-data_handler_fix-1921788-2.patch | 652 bytes | ice5nake |
Comments
Comment #1
ice5nake CreditAttribution: ice5nake commentedThe following line at the beginning of the insert function of the FeedsDataHandler fixes the problem.
$record[parentog_groups] = array_pop($record[parentog_groups]);
If I can get time for a more graceful solution I will submit a patch.
Comment #2
ice5nake CreditAttribution: ice5nake commentedNot the sexiest patch, but it's the best I could come up with on short work.
Comment #3
twistor CreditAttribution: twistor as a volunteer commented