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...
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2630210-4-delete-link-notice.patch | 1.29 KB | joelpittet |
| #3 | 2630210-delete-link-notices-3.patch | 1.25 KB | babruix |
Comments
Comment #2
niklanSame problem here.
Comment #3
babruix commentedHere is the patch.
Comment #4
joelpittet@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.
Comment #5
legolasboSlightly adjusted the patch for improved readability.
Committed and pushed to 7.x-2.x. Thanks!