HTMLMultiSelectField: Allow formatting in section headings in OOUI mode
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 30 Nov 2017 16:38:30 +0000 (17:38 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 30 Nov 2017 16:38:30 +0000 (17:38 +0100)
Follow-up to 5a113417e5af9d0d0dbed63429649a9780784d45.
It is allowed in non-OOUI modes.

Bug: T181698
Change-Id: Ib2ebcd1a92f1b02a528787fe3fd1f5452b9808c4

includes/htmlform/fields/HTMLMultiSelectField.php

index 238b2b4..09bacad 100644 (file)
@@ -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;