NIHVIVO-707 Fix required values on webpage form. Fix cancel url on webpage form in add mode.

This commit is contained in:
ryounes 2011-07-11 19:28:41 +00:00
parent abf49ae47a
commit f50bc009c3

View file

@ -59,7 +59,7 @@
urlPatternToCancelTo = request.getParameter("url");
}
// If a different cancel return path has been designated, use it. Otherwise, use the regular return path.
if (cancel != null && cancel.equals("true") && !StringUtils.isEmpty(urlPatternToCancelTo)) {
if ("true".equals(cancel) && !StringUtils.isEmpty(urlPatternToCancelTo)) {
urlPattern = urlPatternToCancelTo;
}
else if (!StringUtils.isEmpty(urlPatternToReturnTo)) {