Skip to content

Commit

Permalink
empty array works for all modes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Dec 10, 2024
1 parent 983fca4 commit 47307c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/backend/widgets/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ public function getSaveData(): array
$fieldValue = $this->dataArrayGet($result, $parts, FormField::NO_SAVE_DATA);
if ($fieldValue === FormField::NO_SAVE_DATA) {
if ($widget->getConfig('type') === 'taglist') {
$fieldValue = in_array($widget->getConfig('mode'), ['array','relation']) ? [] : '';
$fieldValue = [];
} else {
continue;
}
Expand Down

0 comments on commit 47307c7

Please sign in to comment.