Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Stalski commentedThat code is not so nice indeed :)
I fixed it a bit and pushed to git.