We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a948207 commit 2a6cde4Copy full SHA for 2a6cde4
src/Forms/Controls/BaseControl.php
@@ -196,7 +196,6 @@ public function setDefaultValue($value)
196
public function setDisabled($value = TRUE)
197
{
198
if ($this->disabled = (bool) $value) {
199
- $this->omitted = TRUE;
200
$this->setValue(NULL);
201
}
202
return $this;
@@ -231,7 +230,7 @@ public function setOmitted($value = TRUE)
231
230
*/
232
public function isOmitted()
233
234
- return $this->omitted;
+ return $this->omitted || $this->disabled;
235
236
237
0 commit comments