Skip to content

Commit

Permalink
revert changes to original behavior, too many problems
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed May 15, 2024
1 parent f8459b4 commit bdb7a7e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/backend/widgets/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public function setFormValues($data = null)
public function onRefresh()
{
$result = [];
$saveData = $this->getSaveData(true);
$saveData = $this->getSaveData();

/**
* @event backend.form.beforeRefresh
Expand Down Expand Up @@ -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 = [];

Expand All @@ -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;
}

Expand Down

0 comments on commit bdb7a7e

Please sign in to comment.