I am getting these error messages when using a "Content: Delete link" token:

Notice: Undefined property: views_handler_relationship_broken::$alias in views_handler_field_entity->query() (line 56 of .../views/handlers/views_handler_field_entity.inc).
Notice: Undefined property: views_handler_relationship_broken::$alias in views_plugin_query_default->get_result_entities() (line 1602 of .../views/plugins/views_plugin_query_default.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Liam Morland’s picture

Liam Morland’s picture

#1: views_1885376_undefined.patch queued for re-testing.

Liam Morland’s picture

1: views_1885376_undefined.patch queued for re-testing.

Chris Matthews’s picture

Issue summary: View changes

The 6 year old patch to views_handler_field_entity.inc and views_plugin_query_default.inc applied cleanly to the latest views 7.x-3.x-dev and only if still relevant needs review.

Liam Morland’s picture

Test failures shown above are also failing on the unpatched branch.

renatog’s picture

Status: Needs review » Reviewed & tested by the community

Yeah, I applied Liam's patch and it really works well. I can confirm that the errors have gone away. It's a best practice verify the variable before use that. Really makes sense. So moving to RTBC

  • RenatoG committed dad7062 on 7.x-3.x authored by Liam Morland
    Issue #1885376 by Liam Morland, Chris Matthews, RenatoG: Notice:...
renatog’s picture

Status: Reviewed & tested by the community » Fixed
Parent issue: » #3118500: Plan for Views 7.x-3.25

Moved to the dev branch

Thank you so much for your contribution @liam-morland

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.