Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e77042

Browse files
committed
Fixed value check
1 parent 9536357 commit 6e77042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Widgets/ChoiceWidget.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ protected function formatValue($value)
175175
$values[] = parent::formatValue($v);
176176
}
177177
} else {
178-
$values = !empty($value) ? [parent::formatValue($value)] : [];
178+
$values = $value !== false ? [parent::formatValue($value)] : [];
179179
}
180180

181181
return $values;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /