Skip to content

Commit 8435f4b

Browse files
committed
Form::getToggles() iterates only over BaseControls
1 parent 0b9b713 commit 8435f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Forms/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ private function getHttpRequest()
675675
public function getToggles()
676676
{
677677
$toggles = [];
678-
foreach ($this->getControls() as $control) {
678+
foreach ($this->getComponents(TRUE, Controls\BaseControl::class) as $control) {
679679
$toggles = $control->getRules()->getToggleStates($toggles);
680680
}
681681
return $toggles;

0 commit comments

Comments
 (0)