Skip to content

Commit

Permalink
[4.x] Fix select fieldtype fallback differently (#9087)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Nov 30, 2023
1 parent ed52837 commit 7a58ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fieldtypes/HasSelectOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ private function getLabel($actualValue)
$value = $this->castFromBoolean($value);
}

return $this->isOption($value) && Arr::get($this->config('options'), $value)
? Arr::get($this->config('options'), $value, $value)
return $this->isOption($value)
? Arr::get($this->config('options'), $value) ?? $value
: $actualValue;
}

Expand Down

0 comments on commit 7a58ba3

Please sign in to comment.