d5a902c6 by Jerry Pommer

Resolve #3199 - Add date filtering to visit query.

1 parent 72178d74
...@@ -172,10 +172,13 @@ public class DirectControlServlet extends HttpServlet { ...@@ -172,10 +172,13 @@ public class DirectControlServlet extends HttpServlet {
172 String authToken = request.getParameter("sessionId"); 172 String authToken = request.getParameter("sessionId");
173 if (authToken != null) { 173 if (authToken != null) {
174 GenericValue authTokenEntity = EntityUtil.getFirst( 174 GenericValue authTokenEntity = EntityUtil.getFirst(
175 delegator.findList("Visit", 175 EntityUtil.filterByDate(
176 EntityCondition.makeCondition("cookie", 176 delegator.findList("Visit",
177 EntityOperator.EQUALS, authToken), 177 EntityCondition.makeCondition("cookie",
178 null, null, null, true)); 178 EntityOperator.EQUALS, authToken),
179 null, null, null, true)
180 )
181 );
179 182
180 if (authTokenEntity != null && 183 if (authTokenEntity != null &&
181 authTokenEntity.get("userLoginId") != null) { 184 authTokenEntity.get("userLoginId") != null) {
......