Please forgive my poor English, I just want to report this bug.

if you follow this, you can find this bug.

1) Add a new field for comment . eg:sex
http://localhost/drupal8/admin/structure/types/manage/page/comment/fields
find bug step

2) Create a new conent, and add a comment.

3) Create a new views with comment type,and add the sex field (Comment: sex (sex))
step02
step03

4) you can find the field can't show the value.
step04

This bug only appear in the comment types and custom Entity type

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

swentel’s picture

Issue tags: +views integration, +Field API

Thanks for the report, tagging.

dawehner’s picture

FileSize
1.41 KB

I have no idea whether this is a proper fix, but basically field_view_field doesn't work with NG entities at the moment.

dawehner’s picture

Status: Active » Needs review

.

swentel’s picture

dawehner’s picture

This is certainly related but afaik views does not call field_attach_view. So maybe the other issue should also do this trick on field_view_field as well? Alternative you could just use the approach in the other issue here.

dawehner’s picture

FileSize
1.19 KB

Let's directly convert the entity at the top.

tstoeckler’s picture

Status: Needs review » Needs work

It seems the two hunks are redundant?!

dawehner’s picture

Status: Needs work » Needs review
FileSize
575 bytes

Good catch!

swentel’s picture

Status: Needs review » Closed (won't fix)
Issue tags: -Field API
swentel’s picture

Issue summary: View changes

modify the content