Skip to content

Commit

Permalink
BaseControl::setDisabled(FALSE) reloads HTTP value [Closes #139]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 22, 2016
1 parent c2618a1 commit 69daca9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Forms/Controls/BaseControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ public function setDisabled($value = TRUE)
{
if ($this->disabled = (bool) $value) {
$this->setValue(NULL);
} elseif (($form = $this->getForm(FALSE)) && $form->isAnchored() && $form->isSubmitted()) {
$this->loadHttpData();
}
return $this;
}
Expand Down

0 comments on commit 69daca9

Please sign in to comment.