Closed (fixed)
Project:
Heartbeat
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2012 at 17:13 UTC
Updated:
22 Feb 2012 at 23:20 UTC
Hey Jochen,
me again! I found out why ajax for nodes isn't working:
// activitycomments_node is always empty
$node_comment = isset($_POST['activitycomments_node']) ? $_POST['activitycomments_node']: 0;
// it's mean to use code like this :p I had to ask someone what this is doing.
$node_comment = (int) ($node_comment && $nid);
Nevermind! I attached a patch but i couldn't test if it breaks loading heartbeat messages instead of node comments so please have a good at it.
kind regards
Volkan
| Comment | File | Size | Author |
|---|---|---|---|
| heartbeat_node_ajax.patch | 878 bytes | muschpusch |
Comments
Comment #1
Stalski commentedThat code is not so nice indeed :)
I fixed it a bit and pushed to git.