Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Allow empty date setting to dateBone #155

Merged
merged 2 commits into from
May 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ This file documents any relevant changes done to ViUR server since version 2.
- Allow in-tests in values of selectBone ([#139](https://github.com/viur-framework/server/pull/139))
- The dbtransfer/upload to correctly obtain the oldBlobKey ([#103](https://github.com/viur-framework/server/pull/103))
- Improved handling of email-recipient-override in utils.sendMail ([#136](https://github.com/viur-framework/server/pull/136))
- Allow setting a dateBone back to None again ([#155](https://github.com/viur-framework/server/pull/155))

### Removed
- pytz. It's now provided in the base repo
Expand Down
2 changes: 1 addition & 1 deletion bones/dateBone.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def fromClient( self,valuesCache, name, data ):
return "Invalid value entered"
else:
err = self.isInvalid(value)
if not err:
if not err or value is None:
valuesCache[name] = value
if value is None:
return "No value entered"
Expand Down