Do not use html variables in AbstractFormField::getHtml()
authorMatthias Schmidt <gravatronics@live.com>
Sun, 12 Jan 2020 16:11:14 +0000 (17:11 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 12 Jan 2020 16:11:14 +0000 (17:11 +0100)
The additional template variables are only relevant for the actual form field which is generated by `AbstractFormField::getFieldHtml()`.

wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php

index 6ae7bd7b27cbe4a9ebde80dc05e1d0b0f260a17c..8d3fa693a624e7829a8033e9315f46293d209123 100644 (file)
@@ -124,9 +124,7 @@ abstract class AbstractFormField implements IFormField {
                return WCF::getTPL()->fetch(
                        '__formField',
                        'wcf',
-                       array_merge($this->getHtmlVariables(), [
-                               'field' => $this
-                       ]),
+                       ['field' => $this],
                        true
                );
        }