extended-acf icon indicating copy to clipboard operation
extended-acf copied to clipboard

Calling ->dump() on a field with sub_fields always returns error

Open marcoluzi opened this issue 6 months ago • 2 comments

Description of the bug

Using ->dump() on a Field that has sub_fields always return the following error:

Fatal error: Uncaught Error: Call to a member function get() on array

The dump itself is returned but the error happens afterwards.

Screenshot 2024-08-16 at 14 30 56

Dumps on other fields are returned without any errors. Also tested on the Repeater field with the same resulting error as above.

Steps to reproduce

register_extended_field_group([
	'title' => 'Kundeninformationen',
	'fields' => [
		Image::make('Logo'),
		Text::make('Firmenname'),
		Text::make('Strasse/Nr.'),
		Text::make('PLZ'),
		Text::make('Ort'),
		Text::make('Telefon'),
		Group::make('Social Media')
			->fields([
				URL::make('Facebook'),
				URL::make('Instagram'),
				URL::make('LinkedIn'),
				URL::make('X'),
				URL::make('YouTube'),
			])->dump(),
	],
	'location' => [Location::where('post_type', 'page')],
]);

marcoluzi avatar Aug 16 '24 12:08 marcoluzi