TheDJ has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/349425 )
Change subject: HTMLForm: add errors to html in ooui variants ...................................................................... HTMLForm: add errors to html in ooui variants HTMLForm when using OOUI mode was not adding errors to the resulting HTML, if depending on message arrays, as previously used before Status. Bug: T158492 Change-Id: I8765a025dd441676e35a7c183c67b37036643c1e --- M includes/htmlform/OOUIHTMLForm.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/25/349425/1 diff --git a/includes/htmlform/OOUIHTMLForm.php b/includes/htmlform/OOUIHTMLForm.php index 549edde..33e7895 100644 --- a/includes/htmlform/OOUIHTMLForm.php +++ b/includes/htmlform/OOUIHTMLForm.php @@ -207,7 +207,7 @@ $error = array_merge( [ $error['message'] ], $error['params'] ); } } - } elseif ( $elementsType === 'errors' ) { + } elseif ( $elementsType === 'error' ) { $errors = $elements; if ( !is_array( $errors ) ) { $errors = [ $errors ]; -- To view, visit https://gerrit.wikimedia.org/r/349425 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8765a025dd441676e35a7c183c67b37036643c1e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: TheDJ <hartman.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits