Closed timlogemann closed 2 years ago
@timlogemann I haven't had a chance to test this code yet, but I have a hunch that removing 'conditional_logic' => 0,
will fix the issue. Try it and let me know. I would also recommend removing any additional default config that isn't necessary.
Good hunch!
that did remove the error. I copied this exact field code from the documentation wiki, where this 'conditional_logic' => 0
was included. Maybe it should be removed from there? If you agree I can make a PR for this
@timlogemann thanks for pointing that out. I removed the conditional_logic key from the examples and added a note that says these are the default attribute values for reference only, and to only include the ones you're changing
I am encountering a thrown error while trying to create a field group with a taxonomy field. I tried printing the $config variable in the
transform()
function of the RecursiveTransform class and it seems that at some point it tries to pass0
as $config.This is the full builder code:
It really has to do with the taxonomy field, because as soon as I remove the addTaxonomy the error message disappears.