Resolve #3199 - Add date filtering to visit query.
Showing
1 changed file
with
4 additions
and
1 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 | EntityUtil.filterByDate( | ||
175 | delegator.findList("Visit", | 176 | delegator.findList("Visit", |
176 | EntityCondition.makeCondition("cookie", | 177 | EntityCondition.makeCondition("cookie", |
177 | EntityOperator.EQUALS, authToken), | 178 | EntityOperator.EQUALS, authToken), |
178 | null, null, null, true)); | 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