html-formhandler
html-formhandler copied to clipboard
inactive Repeatable returns PrimaryKey field on ->fields
When looping over the elements of a Repeatable field using $form->field('repeatable')->fields Repeatable::Instance objects are returned as documented. When doing the same thing when the Repeatable field is inactive it returns the PrimaryKey object instead which I consider a bug as it should return an empty list.