Skip to content
Snippets Groups Projects
Commit f0210dec authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Bugfix: Allowing observers to add POI

parent 560bc804
Branches
Tags
1 merge request!17Develop
...@@ -57,12 +57,11 @@ import no.nibio.web.forms.FormField; ...@@ -57,12 +57,11 @@ import no.nibio.web.forms.FormField;
import no.nibio.web.forms.FormValidation; import no.nibio.web.forms.FormValidation;
import no.nibio.web.forms.FormValidationException; import no.nibio.web.forms.FormValidationException;
import no.nibio.web.forms.FormValidator; import no.nibio.web.forms.FormValidator;
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URIBuilder; import org.apache.http.client.utils.URIBuilder;
/** /**
* Handles transactions for POIs * Handles transactions for POIs
* @copyright 2013-2015 <a href="http://www.nibio.no/">NIBIO</a> * @copyright 2013-2019 <a href="http://www.nibio.no/">NIBIO</a>
* @author Tor-Einar Skog <tor-einar.skog@nibio.no> * @author Tor-Einar Skog <tor-einar.skog@nibio.no>
*/ */
public class PointOfInterestController extends HttpServlet { public class PointOfInterestController extends HttpServlet {
......
...@@ -188,6 +188,8 @@ ...@@ -188,6 +188,8 @@
</select> </select>
<span class="help-block" id="${formId}_userId_validation"></span> <span class="help-block" id="${formId}_userId_validation"></span>
</div> </div>
<#else>
<input type="hidden" name="userId" value="${user.userId}"/>
</#if> </#if>
<button type="submit" class="btn btn-default">${i18nBundle.submit}</button> <button type="submit" class="btn btn-default">${i18nBundle.submit}</button>
<#if poi.pointOfInterestId?has_content> <#if poi.pointOfInterestId?has_content>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment