Skip to content

Commit

Permalink
numeric values shouldn't be treated empty
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed May 16, 2024
1 parent 6a3b575 commit cb03359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/MultiSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function parseField(): mixed
continue;
}
foreach ($value as $dataValue) {
if (!empty($dataValue) && $dataValue === $option[$match]) {
if ((!empty($dataValue) || is_numeric($dataValue)) && $dataValue === $option[$match]) {
$preppedData[] = $option['value'];
}
// special case for when mapping by label, but also using a default value
Expand Down

0 comments on commit cb03359

Please sign in to comment.