Hello,
I wonder wheter Domain Feeds module can be used in user import as well? I've checked many times the csv file, it looks OK but the importer doesn't assign the users to the domains.

Comments

ndf’s picture

This patch works against the 7.x-1.x branch, not 7.x-1.1.

It checks if the FeedsProcessor in action is the 'FeedsUserProcessor' and if so the target name is changed from 'domain' to 'domain_user'.

When you compare with devel an user and a node you will see these entity-types use a different key for their domain settings.

I choose this method (check for the processor-class) instead of checking if the passed entity is a user, because in the latter case $entity->type is not set. And $entity->uid is not completely safe (for instance profile2 uses this to).
A consequence is that this patch won't work if you use the newer Feeds GenericEntityProcessor.

ndf’s picture

Status: Active » Needs review
eric_a’s picture

StatusFileSize
new633 bytes

Here's the same feature, but implemented as a separate target.

jim.m’s picture

Version: 7.x-1.1 » 7.x-1.2
Status: Needs review » Closed (duplicate)

It is implemented as part of issue #2300331.