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

Repeater field not working with user model #85

Open
korridor opened this issue Jan 18, 2020 · 1 comment
Open

Repeater field not working with user model #85

korridor opened this issue Jan 18, 2020 · 1 comment

Comments

@korridor
Copy link

I am trying to fetch a repeater acf field of a user and I get the following error:

Illuminate\Database\QueryException : SQLSTATE[42S22]: Column not found: 1054 Unknown column 'post_id' in 'where clause' (SQL: select * from wp_usermeta where post_id = 1 and (meta_key like arepeater_0_% or meta_key like arepeater_-1_%))

The problem is that there should be user_id in the where statement instead of post_id.
I already created a quick fix locally. I hope I'll find time to create a PR for this in the next couple of weeks.

@trovster
Copy link

The fetchPostsMeta method needs to be updated with check for UserMeta.

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

2 participants