Skip to content

Commit

Permalink
allow saving false (#98)
Browse files Browse the repository at this point in the history
boolean false needs to be saved
  • Loading branch information
ngaspari authored Nov 8, 2024
1 parent fc21dba commit 1fa1cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/Models/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static function validateCreate(Request $request): void

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

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

$customField->validate($request->get($valueColumn));
Expand Down

0 comments on commit 1fa1cab

Please sign in to comment.