From bcd35b87d96286189d69afa3646246a4d726cdbd Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Mon, 20 Aug 2018 15:20:13 +0200
Subject: [PATCH] Bugfix: Fixing wrong loop index

---
 .../templates/cerealblotchmodels/barleynetblotchform.html       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
index 9567efff..28c19138 100755
--- a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
+++ b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html
@@ -217,7 +217,7 @@
             var table = ["<table border=\"1\">",headingLine];
             for(var row in data)
             {
-            	var aResult = data[i];
+            	var aResult = data[row];
 				var allValues = JSON.parse(aResult["allValues"]);
             	if(aResult["validTimeStart"] == null)
             	{
-- 
GitLab