From: Matt Walker Date: Tue, 5 Mar 2013 23:21:06 +0000 (-0800) Subject: Add ID to Nested Fieldsets X-Git-Tag: 1.31.0-rc.0~20473^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=885a70945d688443222ab506c3b1391a1b4906e5;p=lhc%2Fweb%2Fwiklou.git Add ID to Nested Fieldsets I'd rather just get rid of fieldsets when using the div output format, but since I can't do that; at least give me the option to style everything -- all the way down :) Change-Id: Id95b1d98aa6ac11c5030d1ac96d05d6b60b7077e --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 684866fc48..5af813ba94 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -957,7 +957,7 @@ class HTMLForm extends ContextSource { $hasLabel = true; } } elseif ( is_array( $value ) ) { - $section = $this->displaySection( $value, $key ); + $section = $this->displaySection( $value, $key, "$fieldsetIDPrefix$key-" ); $legend = $this->getLegend( $key ); if ( isset( $this->mSectionHeaders[$key] ) ) { $section = $this->mSectionHeaders[$key] . $section;