X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=blobdiff_plain;f=includes%2FHtml.php;h=f4a3b55571f5f196ed2c0719debfaff8489cff5e;hb=37d9c1a6dcdb1605918a891f0320c23c0c41b4d9;hp=9fcdc521bddbad67d3512765c35658afc1eadc09;hpb=fdfe87fbd617e9bcfa7b03a00f62feffb8dc6b2b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Html.php b/includes/Html.php index 9fcdc521bd..f4a3b55571 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -810,6 +810,14 @@ class Html { ); } + if ( !array_key_exists( 'id', $selectAttribs ) ) { + $selectAttribs['id'] = 'namespace'; + } + + if ( !array_key_exists( 'name', $selectAttribs ) ) { + $selectAttribs['name'] = 'namespace'; + } + $ret = ''; if ( isset( $params['label'] ) ) { $ret .= Html::element(