NIHVIVO-1392 Comment
This commit is contained in:
parent
b559e36228
commit
26023b7fe2
1 changed files with 2 additions and 1 deletions
|
@ -177,12 +177,13 @@ public class IndividualController extends FreemarkerHttpServlet {
|
||||||
|
|
||||||
map = new HashMap<String, Object>();
|
map = new HashMap<String, Object>();
|
||||||
String formAction = vreq.getRequestURI();
|
String formAction = vreq.getRequestURI();
|
||||||
|
// The URL for an individual in a non-default namespace has a uri parameter to identify the individual.
|
||||||
String queryString = vreq.getQueryString();
|
String queryString = vreq.getQueryString();
|
||||||
if (! StringUtils.isBlank(queryString)) {
|
if (! StringUtils.isBlank(queryString)) {
|
||||||
formAction += "?" + queryString;
|
formAction += "?" + queryString;
|
||||||
}
|
}
|
||||||
map.put("action", formAction);
|
map.put("action", formAction);
|
||||||
// Use post since we are appending query string to form action.
|
// Use post since we are appending the query string to form action.
|
||||||
map.put("method", "post");
|
map.put("method", "post");
|
||||||
map.put("currentValue", verboseValue);
|
map.put("currentValue", verboseValue);
|
||||||
map.put("newValue", String.valueOf(!verboseValue));
|
map.put("newValue", String.valueOf(!verboseValue));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue