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 created a field and set it as a roll reference field. That field name does not show up as an option when mapping a source in Feeds.
Comment | File | Size | Author |
---|---|---|---|
#6 | feeds_rolereference-1703070-6.patch | 1.22 KB | caxy4 |
#2 | feeds_rolereference-1703070-2.patch | 1.18 KB | nadavoid |
Comments
Comment #1
Alexander Hadj Hassine CreditAttribution: Alexander Hadj Hassine commentedSame here
Comment #2
nadavoid CreditAttribution: nadavoid commentedThis patch adds basic support for feeds. It works in my use case, but I only have one instance of the field on the site I'm using it on.
This also just uses role ids as-is, so if your roles have different ids from the source, some additional changes will need to happen.
Comment #3
nadavoid CreditAttribution: nadavoid commentedComment #4
nadavoid CreditAttribution: nadavoid commentedComment #5
johnvComment #6
caxy4 CreditAttribution: caxy4 at ThinkShout commentedUpdating nadavoid's patch with a small change to ensure new rids being mapped are not empty, which causes a db error.
Since new values will "always overwrite the target value" according to https://drupal.org/node/1107522 this check seems necessary.
Comment #8
Alex Liannoy CreditAttribution: Alex Liannoy at ZANZARRA Drupal Agency commentedThank you everybody, for helping. Patch is in the 7.x-1.x branch.