New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.9.X: Radio field returns [object Object] when included via a partial fieldset #1935

Closed
benfurfie opened this Issue May 22, 2018 · 3 comments

Comments

Projects
None yet
5 participants
@benfurfie

benfurfie commented May 22, 2018

Describe the bug
When a radio fieldtype is included via a partial, it returns the type, rather than the key or value i.e. [object Object]

To Reproduce
Steps to reproduce the behavior:

  1. Create a fieldset.
  2. Create a radio field.
  3. Add a couple of options as a key value.
  4. Save it.
  5. Create a new fieldset.
  6. Include that first fieldset into the new one as a partial field.
  7. Create a new page with that fieldset.
  8. You should see the field return incorrectly as [object Object].

Expected behavior
It should return a radio field with the values that you created before displayed.

Screenshots
radio_partial_bug

Environment details (please complete the following information):

  • Statamic Version [e.g. 2.9.1]
  • Fresh Install and Upgrade:
  • OS: MacOS 10.13.4
  • Browser: Chrome, Firefox, Safari
  • Web Server: Valet
  • PHP Version: 7.1
  • Addons installed: None

@benfurfie benfurfie changed the title from 2.9.X to 2.9.X: Radio field returns [object Object] when included via a partial fieldset May 22, 2018

@jackmcdade jackmcdade added the bug label May 22, 2018

@efoken

This comment has been minimized.

efoken commented May 23, 2018

Arghh, same here! As we use many many partials here, this is clearly an update blocker 😢

@justinhough

This comment has been minimized.

justinhough commented May 29, 2018

Noticed this on select lists that are included via a partial, as well.

screenshot 2018-05-29 11 29 22

@jasonvarga

This comment has been minimized.

Member

jasonvarga commented May 29, 2018

Yep this issue isn't radio specific. Just something screwy with how partials are brought inline. We're focusing on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment