From 885a70945d688443222ab506c3b1391a1b4906e5 Mon Sep 17 00:00:00 2001 From: Matt Walker Date: Tue, 5 Mar 2013 15:21:06 -0800 Subject: [PATCH] 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 --- includes/HTMLForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1