corcel / acf

Advanced Custom Fields (ACF) plugin for Corcel
127 stars 100 forks source link

Add support for Clone Field #25

Open njbarrett opened 7 years ago

njbarrett commented 7 years ago

If you use the clone field type (fairly new acf type that clones another field) then you get an error: Call to a member function get() on null ACF stores clone fields as {fieldkey}_{clonedfieldkey} e.g field_58d217c0bbeef_field_58cb8919c2607

so we can extract the parent's field type instead and everything works as expected.