Fixes incorrect observation point url

This commit is contained in:
MatteoBiscosi 2021-11-25 12:38:47 +01:00
parent ca1be4364d
commit ba2e8ea00a
2 changed files with 3 additions and 1 deletions

View file

@ -102,7 +102,7 @@
<optgroup label="{{ i18n('observationpoints') }}">
{% for _, v in pairsByKeys(observationPoints, asc) do %}
{% local selected = '' %}
{% if((observationPointId ~= nil) and (tostring(k) == tostring(observationPointId))) then selected = 'selected' end %}
{% if((observationPointId ~= nil) and (tostring(v["obs_point"]) == tostring(observationPointId))) then selected = 'selected' end %}
<option value="{{ v["obs_point"] }}" {{ selected }}>{{ getObsPointAlias(v["obs_point"], true) }}</option>
{% end %}
</optgroup>