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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Alexander Hadj Hassine’s picture

Same here

nadavoid’s picture

Issue summary: View changes
FileSize
1.18 KB

This 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.

nadavoid’s picture

Status: Active » Needs review
nadavoid’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
johnv’s picture

Title: Cannot map feeds to role reference field setup in content type. » Add Feeds support to role reference field.
caxy4’s picture

Updating 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.

Alex Liannoy’s picture

Status: Needs review » Fixed

Thank you everybody, for helping. Patch is in the 7.x-1.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.