- 🇨🇦Canada Shiraz Dindar Sooke, BC
@jsidigital
Indeed what you are experiencing is the patch not working at all, and throwing that message.
The code I wrote is an alternative to the patch, as I'm not super comfortable submitting a patch on this that would change core. There's a bit more going on with the entity reference code than I understand, whereas my code is a specific fix for the specific issue that would have guided someone to this thread in the first place.
The code I wrote is intended to placed in a custom module, yes. Your question, "How do I know what views and what fields are using translation content?" makes me wonder why did you end up on this thread and applying the patch in the first place? It would have been whichever view and translated relationship field that was causing the duplicates in your view results (the symptom of this issue) in the first place.
- 🇺🇸United States jsidigital
@Shiraz dindar,
I am getting "Warning: Undefined variable $target_base_table" in watchdog.
As you mention, the patch applies but something is not correct since I am getting 17 of these warning labels everytime I clear cache.I see you explained and even added your code, but I am confused.
Is there a patch that we can apply to fix this or how does your code work? How and what must we edit to make it apply?
Is it a custom module?
How do I know what views and what fields are using translation content? I have so many views, I have no idea where to start to try and fix this.Would appreciate if anyone has a fix for this or if you can guide me in the right direction here.
thank you.
- 🇬🇧United Kingdom lazysoundsystem
This is a re-roll of for 8.2.x (and without the tests) which goes with the patch on https://www.drupal.org/project/drupal/issues/3056020 📌 Content translation access control Needs work .