diff --git a/forms/HeaderField.php b/forms/HeaderField.php index 7339d31a4..7935a057b 100755 --- a/forms/HeaderField.php +++ b/forms/HeaderField.php @@ -19,12 +19,12 @@ class HeaderField extends DatalessField { if(!isset($args[1]) || is_numeric($args[1])) { $title = (isset($args[0])) ? $args[0] : null; $name = $title; // this means i18nized fields won't be easily accessible through fieldByName() - $headingLevel = (isset($args[1])) ? $args[1] : 2; + $headingLevel = (isset($args[1])) ? $args[1] : null; $allowHTML = (isset($args[2])) ? $args[2] : null; $form = (isset($args[3])) ? $args[3] : null; } - $this->headingLevel = $headingLevel; + if($headingLevel) $this->headingLevel = $headingLevel; $this->allowHTML = $allowHTML; parent::__construct($name, $title, null, $form);