From b90d6474879b7c56b8acf68e32f962527a0ffe9e Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 18 Apr 2010 11:58:39 +0000 Subject: [PATCH] Per report on translatewiki: "namespaces to search" user option always displays all fields unchecked --- includes/HTMLForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 5aa9ae8d6d..ba4720ee07 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -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 .= ' ' . Html::rawElement( 'label', array( 'for' => $this->mID . "-$info" ), $label ); -- 2.20.1