The filter hardcodes "node" as alias in three places instead of fetching the filter handler's table alias. This causes invalid queries when the filter is used with a relationship and the base table is not node.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | select_translation-do-not-hardcode-table-alias-2485045-5.patch | 2.09 KB | ao2 |
Comments
Comment #1
ciss commentedComment #2
sdelbosc commentedI agree with ciss. The module does not handle the views with relationships properly as the join is not done on the related table but always node table.
The patch provided works fine for me.
Comment #3
nironan commentedWorks fine on our production environment.
Comment #4
ao2 commentedIf there is still interest in this, please consider sending a patch for the drupal 8 version of the module.
Thanks,
Antonio
Comment #5
ao2 commentedAttaching an updated patch for the drupal 8 version of the module.
I am not pushing this directly because I did not experience the original problem, so I am waiting for a review or a test.
Thanks,
Antonio
Comment #6
ao2 commentedCan anyone suggest how to set up a test case for this patch?
Thank you,
Antonio
Comment #7
anybody@sdelbosc and @ciss could you please review and test the patch in #5?
Comment #8
anybodyComment #9
anybodyCommitted to 2.x!