From 9ee7becc34050a502bcffcda55d08da4050405f8 Mon Sep 17 00:00:00 2001 From: Michal Skrzypecki Date: Thu, 9 Aug 2018 18:46:38 +0200 Subject: [PATCH 1/2] dont use disabled fields --- Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Form.php b/Form.php index 08d2295c..4c5eef0e 100644 --- a/Form.php +++ b/Form.php @@ -463,7 +463,7 @@ private function initialize() private function addField(\DOMElement $node) { - if (!$node->hasAttribute('name') || !$node->getAttribute('name')) { + if (!$node->hasAttribute('name') || !$node->getAttribute('name') || $node->hasAttribute('disabled')) { return; } From e9004ec0bfe79db04f2625f01acf9930bcb44a93 Mon Sep 17 00:00:00 2001 From: Michal Skrzypecki Date: Thu, 9 Aug 2018 18:49:21 +0200 Subject: [PATCH 2/2] we dont use disabled fields --- Form.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Form.php b/Form.php index 4c5eef0e..13ecf68f 100644 --- a/Form.php +++ b/Form.php @@ -89,10 +89,6 @@ public function getValues() { $values = array(); foreach ($this->fields->all() as $name => $field) { - if ($field->isDisabled()) { - continue; - } - if (!$field instanceof Field\FileFormField && $field->hasValue()) { $values[$name] = $field->getValue(); } @@ -115,10 +111,6 @@ public function getFiles() $files = array(); foreach ($this->fields->all() as $name => $field) { - if ($field->isDisabled()) { - continue; - } - if ($field instanceof Field\FileFormField) { $files[$name] = $field->getValue(); }