Resolve #3199 - Add date filtering to visit query.
Showing
1 changed file
with
7 additions
and
4 deletions
... | @@ -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) { | ... | ... |
-
Please register or sign in to post a comment