Skip to content

Commit

Permalink
Fixed spatial entity form error when saving with empty required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
wondie committed Mar 31, 2017
1 parent 82fea0d commit 70fa52b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log
All notable changes of the Social Tenure Domain Model(STDM) is documented in this file.


## [1.5.2] - 2017-03-31
### Fixed
- **Spatial Entity Forms**: Fixed error when submitting unfilled required fields.

## [1.5.1] - 2017-03-15
### Fixed
- **Database and Configuration**: Fixed inability to append profile prefix on entity
Expand Down
3 changes: 2 additions & 1 deletion ui/forms/spatial_unit_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ def on_form_saved(self, model):
"""
if not model is None:
self.feature_models[self.current_feature] = model
self.editor.accept()
if self.editor.is_valid:
self.editor.accept()

def on_feature_deleted(self, feature_id):
"""
Expand Down

0 comments on commit 70fa52b

Please sign in to comment.