You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to add users to a user relation field in an entry
Steps to reproduce
Create an entry with a user field that has Admin and a group as a source
Set that user field to email in feed-me when creating a new feed
Additional info
The issue exists because $sources = Hash::get($this->field, 'settings.sources');
on line 60 of src/fields/Users.php
returns ["admins","group:xxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxx"]
and so list(, $uid) = explode(':', $source);
is unable to set a $uid for "admins"
Craft version: 3.6.13
Plugins & versions: Feed-me 4.3.6
The text was updated successfully, but these errors were encountered:
Thanks for reporting this; I'm getting Undefined array key 1 - Users.php: 91 when importing to a Users field with Admin, Credentialed or Inactive selected as a Source on the field running Craft 4.4.14 and Feed Me 5.1.4.
It seems to be, as you say because it expects a UID that doesn't exist for those sources.
Description
I am unable to add users to a user relation field in an entry
Steps to reproduce
Additional info
The issue exists because
$sources = Hash::get($this->field, 'settings.sources');
on line 60 of
src/fields/Users.php
returns
["admins","group:xxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxx"]
and so
list(, $uid) = explode(':', $source);
is unable to set a $uid for "admins"
The text was updated successfully, but these errors were encountered: