From bdb7a7eec94eb3ec4a54143c7f1db220e06bea54 Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Wed, 15 May 2024 16:14:09 -0400 Subject: [PATCH] revert changes to original behavior, too many problems --- modules/backend/widgets/Form.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/backend/widgets/Form.php b/modules/backend/widgets/Form.php index 59ec24e033..ecb078c4d6 100644 --- a/modules/backend/widgets/Form.php +++ b/modules/backend/widgets/Form.php @@ -354,7 +354,7 @@ public function setFormValues($data = null) public function onRefresh() { $result = []; - $saveData = $this->getSaveData(true); + $saveData = $this->getSaveData(); /** * @event backend.form.beforeRefresh @@ -1172,10 +1172,9 @@ protected function showFieldLabels($field) /** * Returns post data from a submitted form. */ - public function getSaveData(bool $includeAllFields = false): array + public function getSaveData(): array { $this->defineFormFields(); - $this->applyFiltersFromModel(); $result = []; @@ -1194,7 +1193,7 @@ public function getSaveData(bool $includeAllFields = false): array /* * Disabled and hidden should be omitted from data set */ - if (!$includeAllFields && ($field->disabled || $field->hidden)) { + if ($field->disabled || $field->hidden) { continue; }