Skip to content

Commit 1fa1cab

Browse files
authored
allow saving false (#98)
boolean false needs to be saved
1 parent fc21dba commit 1fa1cab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App/Models/Value.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static function validateCreate(Request $request): void
101101

102102
self::filterByAllowedColumn($valueColumn, $request);
103103

104-
throw_if(!$request->has($valueColumn) || empty($request->get($valueColumn)),
104+
throw_if(!$request->has($valueColumn) || is_null($request->get($valueColumn)),
105105
new Exception("Attribute '$valueColumn' needs to be provided."));
106106

107107
$customField->validate($request->get($valueColumn));

0 commit comments

Comments
 (0)