From 4f6dbd54d0d3307b24ce6d5c17f7b2adb139d703 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Thu, 31 Jan 2019 12:59:47 +0100
Subject: [PATCH] Bugfix: UserId is now mandatory

---
 src/main/webapp/formdefinitions/poiForm.json            | 4 +++-
 src/main/webapp/formdefinitions/weatherStationForm.json | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/formdefinitions/poiForm.json b/src/main/webapp/formdefinitions/poiForm.json
index d795e4ef..fbb1808a 100755
--- a/src/main/webapp/formdefinitions/poiForm.json
+++ b/src/main/webapp/formdefinitions/poiForm.json
@@ -71,7 +71,9 @@
         {
             "name" : "userId",
             "dataType" : "INTEGER",
-            "required" : false
+            "fieldType" : "SELECT_SINGLE",
+            "required" : true,
+            "nullValue" : "-1"
         },
         {
             "name" : "externalResourceIdentifier",
diff --git a/src/main/webapp/formdefinitions/weatherStationForm.json b/src/main/webapp/formdefinitions/weatherStationForm.json
index ba422418..1bc2f92b 100755
--- a/src/main/webapp/formdefinitions/weatherStationForm.json
+++ b/src/main/webapp/formdefinitions/weatherStationForm.json
@@ -77,7 +77,9 @@
         {
             "name" : "userId",
             "dataType" : "INTEGER",
-            "required" : false
+            "fieldType" : "SELECT_SINGLE",
+            "required" : true,
+            "nullValue" : "-1"
         },
         {
             "name" : "externalResourceIdentifier",
-- 
GitLab