desklab / gcampus

GewässerCampus is an educational project on limnology aiming to provide students the possibility to analyse, publish and discuss results of self-conducted measurements of water-quality in rivers and lakes.
https://gewaessercampus.de
GNU Affero General Public License v3.0
3 stars 1 forks source link

reset water when selecting a new location in measurement form #69

Closed ax-sc closed 2 years ago

ax-sc commented 2 years ago

When creating a new measurement, the water item selected from the list of suggestions should be reset if the location is changed and the selected water is not one of the items suggested at the new location.

You can reproduce the issue by following these steps (in the add measurement form):

  1. Select a location by placing the pin near a water at the map.
  2. Select the water from suggestions.
  3. Move the pin to any location not near to any water.

As a consequence, there are no suggestions to select a water from, but the user is able to continue, add parameters and save the measurement, which then uses the in the second step selected water but the location from the third step (which do not match).