diff --git a/src/Forms/Form.php b/src/Forms/Form.php index 7c85704ae..679b8b2c7 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -631,7 +631,7 @@ private function getHttpRequest() public function getToggles() { $toggles = array(); - foreach ($this->getControls() as $control) { + foreach ($this->getComponents(TRUE, 'Nette\Forms\Controls\BaseControl') as $control) { $toggles = $control->getRules()->getToggleStates($toggles); } return $toggles;