Skip to content
Snippets Groups Projects
Commit 077cb0cd authored by Cam Saül's avatar Cam Saül
Browse files

Merge pull request #1862 from metabase/allow-nil-values-for-datetime-fields

Allow nil values when filtering against DateTimeFields
parents bbfdf23f e1b2098f
No related branches found
No related tags found
No related merge requests found
......@@ -24,5 +24,8 @@
(instance? RelativeDatetime value)
(map->RelativeDateTimeValue {:field this, :amount (:amount value), :unit (:unit value)})
(nil? value)
nil
:else
(throw (Exception. (format "Invalid value '%s': expected a DateTime." value))))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment