Per report on translatewiki: "namespaces to search" user option always displays all...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 18 Apr 2010 11:58:39 +0000 (11:58 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 18 Apr 2010 11:58:39 +0000 (11:58 +0000)
includes/HTMLForm.php

index 5aa9ae8..ba4720e 100644 (file)
@@ -1270,7 +1270,7 @@ class HTMLMultiSelectField extends HTMLFormField {
                        } else {
                                $thisAttribs = array( 'id' => $this->mID . "-$info", 'value' => $info );
                                
-                               $checkbox = Xml::check( $this->mName . '[]', $info === $value,
+                               $checkbox = Xml::check( $this->mName . '[]', in_array( $info, $value, true ),
                                                                $attribs + $thisAttribs );
                                $checkbox .= '&nbsp;' . Html::rawElement( 'label', array( 'for' => $this->mID . "-$info" ), $label );