When trying to add additional query parameters on the views_handler_relationship_entity_reverse relationship, i was only able to use the join_extra field, which is added on the first join. This is however only the field data, the real node is only available in the second join.

I have attached a patch adding an extra supported index called "join_extra_second" which populates the extra data on the second join if it is set.

Let me know what you think.

Comments

Status: Needs review » Needs work

The last submitted patch, enity-reverse-second-extra-support.patch, failed testing.

joostpluijmers’s picture

Status: Needs work » Needs review
StatusFileSize
new786 bytes

Updated newlines patch.

chris matthews’s picture

Version: 7.x-3.5 » 7.x-3.x-dev
Assigned: joostpluijmers » Unassigned
Issue summary: View changes

The 6 year old patch to iews_handler_relationship_entity_reverse.inc applied cleanly to the latest views 7.x-3.x-dev and if still applicable needs to be reviewed. Note: coding standard errors below.

enity-reverse-second-extra-support-fixed-newline.patch:11: space before tab in indent.
    	$second['extra'] = $this->definition['join_extra_second'];
Checking patch modules/field/views_handler_relationship_entity_reverse.inc...
Hunk #1 succeeded at 69 (offset 4 lines).
Applied patch modules/field/views_handler_relationship_entity_reverse.inc cleanly.
warning: 1 line adds whitespace errors.