Closed (fixed)
Project:
Edit Limit
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2011 at 06:40 UTC
Updated:
1 Aug 2011 at 12:53 UTC
There are two users: admin (administrator) and test (authenticated user). If test creates record (Blog entry), and admin places there the comment there is an error:
Notice: Undefined index: comment-edit in edit_limit_node_view_alter() (line 320 of Z:\home\test.com\www\sites\all\modules\edit_limit\edit_limit.module).
Notice: Undefined index: title in edit_limit_node_view_alter() (line 320 of Z:\home\test.com\www\sites\all\modules\edit_limit\edit_limit.module).
The error is displayed only for the user test.
P.S. Thanks for the excellent module!
Comments
Comment #1
snupy commentedDecision variant:
edit_limit.module
To find:
if (!user_access('bypass edit limits') && variable_get('edit_limit_comment_time_enabled', FALSE)) {To replace on:
if (!user_access('bypass edit limits') && variable_get('edit_limit_comment_time_enabled', FALSE) && !empty($build['comments']['comments'][$key]['links']['comment']['#links']['comment-edit'])) {Comment #2
quade commentedGood find. I've updated that conditional and is resolved in 7.x-1.0-beta3.