Skip to content

Commit

Permalink
Form::getToggles() iterates only over BaseControls
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 30, 2016
1 parent 8aecd83 commit 22ab1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 22ab1e9

Please sign in to comment.