Improve default behavior for HTMLForm::canDisplayErrors
authorGergő Tisza <gtisza@wikimedia.org>
Mon, 22 Aug 2016 22:27:28 +0000 (22:27 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Mon, 22 Aug 2016 22:27:55 +0000 (22:27 +0000)
Change-Id: I3cd94d9b6ce0343af35c1623dac357cccc44293c

includes/htmlform/HTMLFormField.php

index 5f6460d..da045ea 100644 (file)
@@ -61,7 +61,7 @@ abstract class HTMLFormField {
         * @return bool
         */
        public function canDisplayErrors() {
-               return true;
+               return $this->hasVisibleOutput();
        }
 
        /**