Closed (fixed)
Project:
Time Tracker
Version:
7.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2014 at 17:57 UTC
Updated:
2 Jul 2014 at 20:00 UTC
Jump to comment: Most recent
When a comment is sent, shows this message:
Notice: Undefined property: stdClass::$entity_info in time_tracker_comment_insert() (line 584 of /var/www/d7/sites/all/modules/contrib/time_tracker/time_tracker.module).
In time_tracker_comment_insert($comment) , $comment->entity_info doesn't exists
I fixed doing:
// $bundle = $comment->entity_info['bundle'];
$node = node_load( $comment->nid );
if ( $node ) {
$bundle = $node->type;
} else {
return;
}
Comments
Comment #1
chertzogThis has been fixed.