As mikran states here http://drupal.org/node/1415750#comment-5859644 there is a problem with displaying the table of endpoints.

In addition to settings I found more problems with the relation endpoints table. relation/% displays endpoints correctly with 'Full entities list' formatter but with endpoints table just the label is displayed.

I think this is not related to the settings problem in #1415750: Endpoints table field formatter settings are broken so I open another issue for that. Adding a screenshot.

Screenshot

Comments

marcusx’s picture

Status: Active » Needs review
StatusFileSize
new655 bytes

And here a patch for the missing table problem. I am not a renderable array expert, but I think the render array sub elements (the table in this case) needs to be an indexed element and a named key 'table' is not allowed. After removing the key the table shows up correctly.

    case 'relation_endpoint':
      $build[] = _relation_endpoint_field_create_html_table($items); //No key in the build array
      break;
misogi’s picture

How to use this path

mikran’s picture

Priority: Normal » Major
Status: Needs review » Reviewed & tested by the community

Even tests confirm this error. The patch nicely fixes all errors. I didn't dig for the real reason why 'table' makes it fail but the change works.

chx’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks.

jayaram’s picture

Status: Fixed » Needs review

Status: Needs review » Needs work

The last submitted patch, relation-endpoint_table_render_array-1563678-1.patch, failed testing.

mikran’s picture

Status: Needs work » Closed (fixed)