mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5357 from assertchris/cast-heading-level-to-int-in-forms-toggle-composite-field
Cast heading level to int, in forms\ToggleCompositeField.php
This commit is contained in:
commit
30894eb4cf
@ -111,7 +111,7 @@ class ToggleCompositeField extends CompositeField {
|
||||
* @return $this
|
||||
*/
|
||||
public function setHeadingLevel($headingLevel) {
|
||||
$this->headingLevel = $headingLevel;
|
||||
$this->headingLevel = (int) $headingLevel;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user