Skip to content

Commit 2a6cde4

Browse files
committed
BaseControl: disabled controls are always omitted
1 parent a948207 commit 2a6cde4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Forms/Controls/BaseControl.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ public function setDefaultValue($value)
196196
public function setDisabled($value = TRUE)
197197
{
198198
if ($this->disabled = (bool) $value) {
199-
$this->omitted = TRUE;
200199
$this->setValue(NULL);
201200
}
202201
return $this;
@@ -231,7 +230,7 @@ public function setOmitted($value = TRUE)
231230
*/
232231
public function isOmitted()
233232
{
234-
return $this->omitted;
233+
return $this->omitted || $this->disabled;
235234
}
236235

237236

0 commit comments

Comments
 (0)