Skip to content

Commit 194f3be

Browse files
authored
Merge pull request #25 from dipcode-software/fix/format_value
Fixed format value on Widget
2 parents df21663 + dd81ea8 commit 194f3be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
- Allow non-required file fields
1111
- Fixed choice field values check
1212
- Added retrocompability between Twig v1 and v2
13+
- Fixed Widget format value
1314

1415
## [2.0.3] - 2017-12-13
1516
### Added

src/Widgets/Widget.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function getContext(string $name, $value, string $label = null, array
8080
*/
8181
protected function formatValue($value)
8282
{
83-
return !empty($value) ? (string) $value : null;
83+
return $value !== false ? (string) $value : null;
8484
}
8585

8686
/**

0 commit comments

Comments
 (0)