The following code produces a warning notice:

echo theme('fieldset',array('element'=>array('#title' => 'foo')));

Notice: Undefined index: #children in theme_fieldset() (line 2655 of includes/form.inc).

I don't expect this to get into core, but I'm using the attached to track down the real culprits...

CommentFileSizeAuthor
form.inc_.debugging.patch811 bytespillarsdotnet

Comments

pillarsdotnet’s picture

Title: Supply default attributes for theme('fieldset') » Debugging bad calls to theme('fieldset')
pillarsdotnet’s picture

Status: Needs review » Closed (won't fix)

Thanks, testbot!

sinasalek’s picture

Issue summary: View changes
Status: Closed (won't fix) » Reviewed & tested by the community

Patch works for latest version of Drupal 7, i think it should be ported to core

Status: Reviewed & tested by the community » Needs work

The last submitted patch, form.inc_.debugging.patch, failed testing.

dcam’s picture

Status: Needs work » Closed (won't fix)
sinasalek’s picture

Care to explain why?

David_Rothstein’s picture

Because as the original reporter said it's only a debugging patch, not an actual patch proposed for Drupal core :)