Skip to content

Commit

Permalink
Merge pull request #1484 from craftcms/bugfix/cms-15331-adjustment-fo…
Browse files Browse the repository at this point in the history
…r-dropdown-and-empty-value

only return an empty string if setEmptyValues is set
  • Loading branch information
angrybrad committed Jul 18, 2024
2 parents 09a5995 + 63fe553 commit e99404c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function parseField(): mixed
}
}

if (empty($value)) {
if ($this->feed['setEmptyValues'] === 1 && $value === '') {
return $value;
}

Expand Down

0 comments on commit e99404c

Please sign in to comment.