Describe the bug
If a point / site has longitude and latitude set, when it is edited and the longitude and latitude fields are deleted (blank), the longitude and latitude is not removed from the model.
To Reproduce
Steps to reproduce the behavior:
Go to a point
Click on "Edit this point"
Set a longitude and latitude (e.g. latitude: 1, longitude: 1)
Click "Submit"
Observe that the point now has a longitude and latitude
Click "Edit this point"
Delete the longitude and latitude
Observe that no warning / error message is presented to the user
Click "Submit"
Observe that the point still has a longitude and latitude
Expected behavior
(Ideal) The user should be able to remove a site location by setting the longitude and latitude fields to empty
(If this is the expected behavior) We should display an error message to the user conveying that it is not possible to remove latitude / longitude information from points
Desktop (please complete the following information):
OS: Linux (OpenSuse)
Browser Firefox, Chrome
Version 109 (Firefox), Version 110.0.5481.77 (Official Build) (64-bit) (Chrome)
Additional Information:
This is a client side issue as the longitude and latitude is not being sent to the server when the location fields do not have a value
There is also a related bug where if you navigate to a site's edit page and reload, the user will notice that the longitude and latitude information is not added to the model
Describe the bug If a point / site has longitude and latitude set, when it is edited and the longitude and latitude fields are deleted (blank), the longitude and latitude is not removed from the model.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Desktop (please complete the following information):
Additional Information: This is a client side issue as the longitude and latitude is not being sent to the server when the location fields do not have a value