From 6650e6e3a9d6fec7ab8f20167942a8d94a01554c Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Fri, 24 Apr 2009 11:11:44 +0000 Subject: [PATCH] Fix ids for multi-select types --- includes/HTMLForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 0db6980a09..f77ff4c64c 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -664,8 +664,8 @@ class HTMLMultiSelectField extends HTMLFormField { $html .= $this->formatOptions( $info, $value ); } else { $checkbox = Xml::check( $this->mName.'[]', in_array( $info, $value ), - array( 'id' => $this->mID, 'value' => $info ) ); - $checkbox .= ' ' . Xml::tags( 'label', array( 'for' => $this->mID ), $label ); + array( 'id' => $this->mID."-$info", 'value' => $info ) ); + $checkbox .= ' ' . Xml::tags( 'label', array( 'for' => $this->mID."-$info" ), $label ); $html .= Xml::tags( 'p', null, $checkbox ); } -- 2.20.1