From: Sam Reed Date: Wed, 24 Aug 2011 19:48:59 +0000 (+0000) Subject: Revert r95408, breaks preferences X-Git-Tag: 1.31.0-rc.0~28097 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=5e60c1af357696afbb17cab23c7302860c4e7888;p=lhc%2Fweb%2Fwiklou.git Revert r95408, breaks preferences --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 2579f929c2..cfaa9c494e 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -695,8 +695,9 @@ class HTMLForm { : $value->getDefault(); $tableHtml .= $value->getTableRow( $v ); - if ( $value->getLabel() != ' ' ) + if ( $value->getLabel() != ' ' ) { $hasLeftColumn = true; + } } elseif ( is_array( $value ) ) { $section = $this->displaySection( $value, $key ); $legend = $this->getLegend( $key ); @@ -708,7 +709,7 @@ class HTMLForm { } $attributes = array(); if ( $displayTitle ) { - $attributes["title"] = Sanitizer::escapeId( $key ); + $attributes["id"] = 'prefsection-' . Sanitizer::escapeId( $key, 'noninitial' ); } $subsectionHtml .= Xml::fieldset( $legend, $section, $attributes ) . "\n"; }