From: Bartosz DziewoƄski Date: Thu, 30 Nov 2017 16:38:30 +0000 (+0100) Subject: HTMLMultiSelectField: Allow formatting in section headings in OOUI mode X-Git-Tag: 1.31.0-rc.0~1347 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=f75232305410689a54c86fe327a40586eb459239;p=lhc%2Fweb%2Fwiklou.git 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 --- 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;