Skip to content

Repeater field not working with user model #85

@korridor

Description

@korridor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions