From 2a6cde4b5a5ffd877a630e11cb23e51e57c303b4 Mon Sep 17 00:00:00 2001 From: martinknor Date: Tue, 4 Aug 2015 14:18:56 +0200 Subject: [PATCH] BaseControl: disabled controls are always omitted --- src/Forms/Controls/BaseControl.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Forms/Controls/BaseControl.php b/src/Forms/Controls/BaseControl.php index 02c4c1a7a..cb2d8aa79 100644 --- a/src/Forms/Controls/BaseControl.php +++ b/src/Forms/Controls/BaseControl.php @@ -196,7 +196,6 @@ public function setDefaultValue($value) public function setDisabled($value = TRUE) { if ($this->disabled = (bool) $value) { - $this->omitted = TRUE; $this->setValue(NULL); } return $this; @@ -231,7 +230,7 @@ public function setOmitted($value = TRUE) */ public function isOmitted() { - return $this->omitted; + return $this->omitted || $this->disabled; }