When going to the translation tabs on nodes, I am seeing this error:
Notice: Trying to get property of non-object in locale_language_url_rewrite_url() ....
There is a l() function in entity_translation.admin.inc which is passing across a language as a string rather than an object. This is legacy from D6, and needs to be fixed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entity_translation-link-language-error-2749525-2.patch | 1.23 KB | chrisdarke |
Comments
Comment #2
chrisdarke commentedVery simple fix, just changing $langcode to $language, to pass across the object as is appropriate
Comment #3
chrisdarke commentedComment #4
rudi teschner commentedThanks, this fixed the notice for me too. :)
Comment #5
stefanos.petrakisPicking this up for review
Comment #6
stefanos.petrakisOk, this does look very clean. However, I would still like to reproduce the behaviour.
@Rudi Teschner: Could you provide a couple of steps to reproduce the problem?
Comment #7
stefanos.petrakisAll right, I was able to get the notice, by forcing the second part of the ternary condition.
This is ready to go in.
Comment #9
stefanos.petrakisThanks for the helping hand everyone.