Skip to content

Commit 69daca9

Browse files
committed
BaseControl::setDisabled(FALSE) reloads HTTP value [Closes #139]
1 parent c2618a1 commit 69daca9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Forms/Controls/BaseControl.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ public function setDisabled($value = TRUE)
203203
{
204204
if ($this->disabled = (bool) $value) {
205205
$this->setValue(NULL);
206+
} elseif (($form = $this->getForm(FALSE)) && $form->isAnchored() && $form->isSubmitted()) {
207+
$this->loadHttpData();
206208
}
207209
return $this;
208210
}

0 commit comments

Comments
 (0)