Closed (won't fix)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Code - misc
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2012 at 11:24 UTC
Updated:
25 Feb 2015 at 15:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amitaibuThis is in relation to #1781884: If no text exists fallback to default language or LANGAUGE_NONE
Comment #2
willieseabrook commentedI am using commerce backoffice from commerce kickstart, and was having the problem that message text was not being showed.
I applied this against entity-7.x-1.0-rc3 and now it works fine.
Thanks for the patch!
Comment #3
itamar commentedentity-translatable_fields_not_overriding_und_with_empty_values.patch queued for re-testing.
Comment #4
fagoIn that case it's the job of the entity's translation handler to care about moving all the values. It's ugly yep, but this is what core does already. Check the locale translation handler of nodes.
I'd be happy to add whatever utility function to the entity API such that is easy to implement for entity-providing modules.
Comment #5
devin carlson commentedAn update of the original patch which fixes an issue where the langcode was being set to LANGUAGE_NONE even if the field has a value under the default language.
Comment #6
m.schwarzenberg commentedPatch fixes also this issue on OpenAtrium 'Can't see nodetitles in recent activity'(after Module Locale is enabled).
https://drupal.org/node/2036413
Thank you.
Comment #7
petr-oa commentedSame problem after enable Locale module.
Patch #5 helped.
Thank you!
Comment #8
klausiempty() is certainly wrong here, since the string "0" is also empty(), but a legit value. isset() would be more appropriate.
Comment #9
isellakuria commentedPatch #5 worked for me, it solved the issue pointed out here: https://drupal.org/node/1932530
Comment #10
Mariem001 commented#5 it works! thx
Comment #11
manuelBS commentedPatch at #5 also works for me.
Comment #12
gc11 commentedAs it's semi related to this I have opened up a topic on Commerce Message (https://drupal.org/node/2220849) as #2 had problems with backoffice. I had to update Entity to the latest dev for another module install, re applied the patch, albeit in a slightly different section but then unfortunately it results in errors in some of the messages.
I've attached the screenshot in case anyone else is having the same issue.
thx
Comment #13
helmo commentedHere's an updated patch with @klausi's remark from #8
It fixed #2146311: E-mail notifications are empty for me.
Comment #14
sinasalek commentedI've had a problem with messages module not showing message contents on non english pages and applying #13 patch fixed the problem.
Comment #15
manuelBS commentedFor the same, that patch fixed my problem with the messages module, too.
Comment #16
fagoI'm still not convinced #13 is right - there might be no values in the original language on purpose - so just ignoring that seems wrong. That said, this really seems to be a won't fix issue to me. If you disagree, I'd love to hear plach's thoughts on this before adding a fallback like this. But to my best knowledge, this should be a won't fix.
I know message module does some trickery with the content language, so if there are rendering problems with that it might make sense to look into improving how it stores it values instead.