Needs review
Project:
Views Taxonomy Term Name Depth
Version:
7.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 May 2017 at 08:48 UTC
Updated:
28 Oct 2025 at 17:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
anishnirmal commentedComment #3
saranya ashokkumar commentedHello Anishnirmal,
Use this patch to solve it.
Comment #4
dioni commentedHi
Patch fails when no arguments are provided:
Drupal\Core\Database\InvalidQueryException: Query condition 'tn.tid IN ()' cannot be empty.
With this piece of code ('if' condition) you fix the problem:
Comment #5
rakesh.gectcr#4 I think fixes the problem .
Comment #6
saranya ashokkumar commentedHi,
I have updated the patch. Please review.
Comment #7
pookmish commented#6 failed to apply. i manually applied and rerolled the patch.
Comment #8
rakesh.gectcrCane we get the interdiff for this ?
Comment #9
rakesh.gectcr@here Kindly please add the interdiff file also with patch so that reviewer can review easily
Please see https://www.drupal.org/documentation/git/interdiff
Comment #10
rakesh.gectcrComment #11
pookmish commentedSorry. i must have forgotten.
Comment #12
amaisano commentedThe same problem occurs with 8.x-6.x-dev. Does this patch work for that?
Comment #13
pookmish commented@amaisano I just tested this out and it works on 6.x-dev version for me. I encountered the same issue, applied the patch and got correct results.
Comment #14
amaisano commentedHas this been rolled into the latest dev release yet?
Comment #15
pookmish commentedThis has not been added to the latest dev. I've re-rolled the patch. Its almost entirely different than the patch in #7 but the resulting queries are the same. Because of the changes on the dev branch, I can't generate an interdiff.
Comment #16
pookmish commentedFixing my own errors. #15 wasn't using the correct logic with that path_cleaner service.
Comment #17
pookmish commentedRerolling for 6.0-alpha2 release
Comment #18
rakesh.gectcrComment #19
rakesh.gectcrComment #20
vsujeetkumar commentedComment #21
vsujeetkumar commentedRe-roll patch created, Please review.
Comment #22
jaykandariComment #23
ankit mauryaComment #24
rakesh.gectcrThanks every one for the contribution. Can we just hold this until https://www.drupal.org/files/issues/2020-09-28/2909061-33.patch get committed then we can reroll this one.
Comment #25
rakesh.gectcrComment #26
pookmish commentedI've been using the patch from #21 for awhile and just noticed that using percona database, subqueries are handled completely different.
https://www.percona.com/blog/2010/10/25/mysql-limitations-part-3-subquer...
I've updated the patch to just run the subquery first and use the results raw. It's not good on performance, but it seems to be the only option for Percona databases such as on Acquia hosting.
Comment #27
pookmish commentedAdding a check for an empty ids. since doing `WHERE foo IN ()` produces an error.
Comment #28
pookmish commentedCorrect the logic when no ides are present
Comment #29
pookmish commentedFixing warning errors.
Comment #30
pookmish commentedI should've ran my tests first.
Comment #31
rakesh.gectcrHi @pookmish,
Thanks for the great work on this issue. Is it possible for you to fork and create a PR for the same? If you are in Drupal Slack please give me a ping would love to chat about the same.
Thanks
Rakesh James
Comment #32
pookmish commentedComment #34
megha_kundar commentedRe-rolled to 7.x version
Comment #36
dydave commentedHi everyone,
Thank you very much for raising this issue and for contributing patches, it's greatly appreciated.
See at #35 the reroll of the MR from this issue fork:
https://git.drupalcode.org/project/views_taxonomy_term_name_depth/-/merg...
Additionnally, please find attached corresponding patch file:
2877249-allow-multiple-values-36.patch
The patch was applied successfully with composer and tested with the following versions:
Feel free to let us know if you encounter any issues, have comments or questions, any feedback would be welcome.
Thanks in advance.
Comment #37
tnfno commentedThis fix never made it to 7.2.0, merge request failed. And the patch cannot be applied to 7.2.0... Any chance for a patch that works with 7.2.0 or a new release where this is included?
Comment #38
joegl commentedThis has been working for us although an update is needed for 7.3.1. Any chance we can get this merged soon?