mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Cast heading level to int, in forms\ToggleCompositeField.php
This commit is contained in:
parent
f49c0b58d9
commit
6fd11f584d
@ -105,7 +105,7 @@ class ToggleCompositeField extends CompositeField {
|
||||
* @return $this
|
||||
*/
|
||||
public function setHeadingLevel($headingLevel) {
|
||||
$this->headingLevel = $headingLevel;
|
||||
$this->headingLevel = (int) $headingLevel;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user