I have a calendar view displaying list of custom entities created using ECK.
I get the following errors when I add a delete link provided by ECK:

Notice: Undefined property: views_plugin_query_default::$offset in eck_views_handler_field_link_delete->render_link() (line 28 of /sites/all/modules/eck/views/handlers/eck_views_handler_field_link_delete.inc).
Notice: Undefined property: views_plugin_query_default::$limit in eck_views_handler_field_link_delete->render_link() (line 28 of /sites/all/modules/eck/views/handlers/eck_views_handler_field_link_delete.inc).
Notice: Undefined index: query in eck_views_handler_field_link_delete->render_link() (line 31 of /sites/all/modules/eck/views/handlers/eck_views_handler_field_link_delete.inc).
Notice: Undefined index: page in eck_views_handler_field_link_delete->render_link() (line 32 of /sites/all/modules/eck/views/handlers/eck_views_handler_field_link_delete.inc).

Any ideas why?
Thanks in advance...

Comments

Ismail Cherri created an issue. See original summary.

niklan’s picture

Same problem here.

babruix’s picture

Status: Active » Needs review
StatusFileSize
new1.25 KB

Here is the patch.

joelpittet’s picture

Version: 7.x-2.0-rc8 » 7.x-2.x-dev
StatusFileSize
new1.29 KB

@babruix, something is not quite right with the patch you have there, it wouldn't apply and not relative to the project. Did you use git to create it?

I think the solution is correct except !empty() should be isset() so that if one was 0, it would correctly compare them still don't you think? Here's a patch with that.

legolasbo’s picture

Status: Needs review » Fixed

Slightly adjusted the patch for improved readability.

Committed and pushed to 7.x-2.x. Thanks!

  • legolasbo committed e020940 on 7.x-2.x
    Issue #2630210 by joelpittet, babruix, legolasbo: Error message when...

Status: Fixed » Closed (fixed)

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