Hi,
if the referenced entity has only one view mode assigned, the selection of the used view mode doesnt work. The referenced entity has to have more than one view mode!
Fixing the bug is easy:
file: entityreference.module
hook: hook_field_formatter_settings_form
change:
if (count($options) > 1) {
into
if (count($options) > 0) {
Pls fix this
thank you
axe312
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | field_formatter-1541814-1.patch | 493 bytes | bala.addweb |
Comments
Comment #1
bala.addweb commentedComment #2
bala.addweb commentedPlease apply field_formatter-1541814-1.patch
Comment #3
joseph.olstadpatch applies cleanly, makes sense.
Comment #4
minoroffense commentedIf there's only one view mode why would you want to show the select element? There's nothing to choose. I'm closing as works as designed unless you can convince me it solves a UX or functional problem. Thanks.