Skip to content

Commit

Permalink
When using select as a config field, just return the value. Prevents …
Browse files Browse the repository at this point in the history
…the cast_booleans option converting true/false to strings.
  • Loading branch information
jasonvarga committed Oct 30, 2020
1 parent 7f03a73 commit b2a4250
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Fieldtypes/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ public function preProcess($value)
return $value;
}

public function preProcessConfig($value)
{
return $value;
}

public function process($value)
{
if ($this->config('cast_booleans')) {
Expand Down

0 comments on commit b2a4250

Please sign in to comment.