From a1cdcde7fc9fa990959cc8bd7308d0096acfd1d0 Mon Sep 17 00:00:00 2001
From: Lene Wasskog <lene.wasskog@nibio.no>
Date: Mon, 4 Nov 2024 13:41:12 +0100
Subject: [PATCH] feat: Fix variable name, remove duplicate input

---
 .../templates/cerealblotchmodels/barleynetblotchform.html    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
index eba7b2a5..a3c988d3 100755
--- a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
+++ b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
@@ -85,7 +85,6 @@
 							<div id="input-coordinates">
 								<input type="hidden" class="form-control" name="latitude" id="latitude" placeholder="Breddegrad" aria-label="Breddegrad">
 								<input type="hidden" class="form-control" name="longitude" id="longitude" placeholder="Lengdegrad" aria-label="Lengdegrad">
-								<input type="hidden" class="form-control" name="timezone" id="timezone" placeholder="Tidssone" aria-label="Tidssone">
 								<div id="gridPointInfo"></div>
 								<button type="button" class="btn btn-primary btn-map" onclick="openCoordinatesMap()"><i class="fa fa-map-marker fa-lg"></i>&nbsp;&nbsp;{% trans "Open map" %}</button>
 							</div>
@@ -225,7 +224,7 @@
 		"weatherDataSourceType",
 		"latitude",
 		"longitude",
-		"timezone",
+		"timeZone",
 		"weatherStationId",
 		"cropOrganismId",
 		"sowingDate",
@@ -329,7 +328,7 @@
 
 	const getTimezoneForPoint = (latitude, longitude) => {
 		getLocationInformation(latitude, longitude).then(locationInfo => {
-			theForm["timezone"].value = locationInfo.timezone;
+			theForm["timeZone"].value = locationInfo.timezone;
 			document.getElementById("gridPointInfo").innerHTML = `<b>{% trans "Location" %}</b> ${locationInfo.location}<br>
 																	<b>{% trans "Latitude" %}</b> ${locationInfo.latitude}<br>	
 																	<b>{% trans "Longitude" %}</b> ${locationInfo.longitude}<br>
-- 
GitLab