Jump to content


Photo

Nesting Fieldset and FieldsetTab doesn’t work

fields FieldsetOpen FieldsetTabOpen

  • Please log in to reply
5 replies to this topic

#1 Michael van Laar

Michael van Laar

    Distinguished Member

  • Members
  • PipPip
  • 42 posts
  • 27

  • LocationFürth, Germany

Posted 01 July 2012 - 08:13 AM

I’m working on my first ProcessWire project and so far I’m really glad that I found this CMS :-)

But I discovered that nesting a Fieldset into a FieldsetTab doesn’t work. I tested it with and without the custom admin theme – with the same result.

That’s how part of the fields I use in the template look like:

template-settings.png
There’s a new tab “seo_tab” which contains the fieldset “seo_serp” and a few fields before and after this fieldset.

But the result doesn’t look like intended:

page-edit.png
The fieldset “seo_serp” doesn’t end where it should end. Instead it also covers all the following fields.

Any mistake I made? Or is this a bug?

#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,789 posts
  • 3126

  • LocationAtlanta, GA

Posted 02 July 2012 - 12:19 PM

Double check with the default admin theme, just in case it's something with the admin theme you are using. However, I think that it is a bug because I seem to remember running into something similar months ago with nested fieldsets. Though I'd forgotten about it till now. I will take a closer look.

#3 Soma

Soma

    Hero Member

  • Moderators
  • 3,218 posts
  • 1764

  • LocationSH, Switzerland

Posted 02 July 2012 - 12:28 PM

I tested it with and without the custom admin theme – with the same result.


Double check with the default admin theme, just in case it's something with the admin theme you are using. However, I think that it is a bug because I seem to remember running into something similar months ago with nested fieldsets. Though I'd forgotten about it till now. I will take a closer look.


Ryan, according to his post, he already tested default theme. :)

@somartist | modules created | support me, flattr my work flattr.com


#4 Michael van Laar

Michael van Laar

    Distinguished Member

  • Members
  • PipPip
  • 42 posts
  • 27

  • LocationFürth, Germany

Posted 04 July 2012 - 08:07 AM

Indeed I checked this with the default admin theme. The problem is there, too.

The only thing I haven’t checked yet (because I just didn’t have the time) was if a plug-in might cause this behavior.

#5 diogo

diogo

    Hero Member

  • Moderators
  • 2,014 posts
  • 1092

  • LocationPorto, Portugal

Posted 04 July 2012 - 09:16 AM

Funny I tried this and could reproduce the same error, then I created a new fieldset and everything worked, then I tried again with the previous and it worked again... now I can't reproduce the error anymore and I'm not sure what changed. Still, make sure that the seo-serp_END field is really of FieldsetClose type. Or just delete it and create a new one to see if it works.

#6 ryan

ryan

    Hero Member

  • Administrators
  • 5,789 posts
  • 3126

  • LocationAtlanta, GA

Posted 05 July 2012 - 10:37 AM

Thanks for testing Diogo and Michael. I'm pretty certain there's an issue in there somewhere. It may not be consistent, but luckily I've managed to reproduce it in one case here so should have enough to go on to fix it.





Also tagged with one or more of these keywords: fields, FieldsetOpen, FieldsetTabOpen

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users