-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Don't enforce join from visitor to pagevisit table if not ne…
…eded While I faced an issue with different filter startdates in url shortener list view when searching for a word vs. empty filter, I stumbled over the old workarround 1279099. To fix my problem in the URL shortener view (and for cleaning up reasons), I removed the workarround in FilterDto::getStartTimeFromTimePeriod(). But I wanted to also fix the problem from the old workarround (look at revision above). So, searching for a single searchterm in lead list (e.g. email) should also show visitor records without pagevisits in relation. That's why we fixed it now for admins only, where we do not need a where clause for pagevisits.site if there is not site set in filter. But for editors we need this clause in every case to ensure, that editors can only see authenticated leads. The where-clause leads to a join to pagevisits table and so no leads can be found without pagevisit records. In addition I also cleaned up a bit the VisitorRepository by using isser functions.
- Loading branch information
1 parent
dfa58fe
commit 66802e9
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters