From f75232305410689a54c86fe327a40586eb459239 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 30 Nov 2017 17:38:30 +0100 Subject: [PATCH] HTMLMultiSelectField: Allow formatting in section headings in OOUI mode Follow-up to 5a113417e5af9d0d0dbed63429649a9780784d45. It is allowed in non-OOUI modes. Bug: T181698 Change-Id: Ib2ebcd1a92f1b02a528787fe3fd1f5452b9808c4 --- includes/htmlform/fields/HTMLMultiSelectField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/htmlform/fields/HTMLMultiSelectField.php b/includes/htmlform/fields/HTMLMultiSelectField.php index 238b2b46c3..09bacadb69 100644 --- a/includes/htmlform/fields/HTMLMultiSelectField.php +++ b/includes/htmlform/fields/HTMLMultiSelectField.php @@ -192,7 +192,7 @@ class HTMLMultiSelectField extends HTMLFormField implements HTMLNestedFilterable if ( $sectionLabel ) { $out[] = new OOUI\FieldsetLayout( [ 'items' => [ $widget ], - 'label' => $sectionLabel, + 'label' => new OOUI\HtmlSnippet( $sectionLabel ), ] ); } else { $out[] = $widget; -- 2.20.1