Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create user with reference fields. #1031

Open
liquidcms opened this issue Jun 26, 2019 · 0 comments
Open

Can't create user with reference fields. #1031

liquidcms opened this issue Jun 26, 2019 · 0 comments

Comments

@liquidcms
Copy link

As far as i can tell it is not possible to create a new user with reference fields (term or entity reference).

setting account to this:

account = {
name: username,
mail: email,
pass: password,
field_school: {und: {0: {target_id: 62}}},
field_year: {und: {0: {tid: 7}}},
field_test1: {und: {0: {value: 'XXX'}}},
type: 'user'
};

causes both the school and year fields to return form errors stating invalid options. field_test1 works as expected.

changing the form's widget to autocomplete (tagging) allows the form to be validated but the value is not passed to the user create function on the site.

doing a similar entity_create call with a custom entity (ECK) using same format for an entityref field does work; just not for user entity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant