From 1c8100cf25698502153c85b67e4f7f2e3bbf3b62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerg=C5=91=20Tisza?= Date: Mon, 22 Aug 2016 22:27:28 +0000 Subject: [PATCH] Improve default behavior for HTMLForm::canDisplayErrors Change-Id: I3cd94d9b6ce0343af35c1623dac357cccc44293c --- includes/htmlform/HTMLFormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 5f6460d3df..da045ea2c0 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -61,7 +61,7 @@ abstract class HTMLFormField { * @return bool */ public function canDisplayErrors() { - return true; + return $this->hasVisibleOutput(); } /** -- 2.20.1