Closed thunderdw closed 4 months ago
Does this still work when doing it the old way? (->addFields($this->get(...))
)
Yes, still works the old way
$exampleField
->addRepeater('items')
- ->addPartial(ExamplePartial::class)
+ ->addFields($this->get(ExamplePartial::class))
->endRepeater()
->addText('some_field');
I see. I will have to extend ACF Builder's FieldBuilder
and override a few other classes in the Builder to get parent context working properly when extending FieldsBuilder
.
Thanks for reporting, I will get it fixed tonight.
When using
addPartial()
inside of a repeater or group field, an exception is thrown. This is happening on v3.0.1.app/Fields/ExampleField.php
:app/Fields/Partials/ExamplePartial.php
Stack trace: