Closed (fixed)
Project:
Heartbeat
Version:
6.x-4.1
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2009 at 09:20 UTC
Updated:
2 Oct 2009 at 16:00 UTC
Hi,
I tried to create two blocks in Views to show on the user profile where the first block shows the Heartbeat of the viewed user and the second block shows the Heartbeat of the friends to the viewed user. The problem I bumped into was that the second block showed both the content of the first block and the second block.
I checked the code for Heartbeat and saw that you have a static method for instantiating the HeartbeatParser object and that it is called from the function _heartbeat_group_views_messages with the same parameter 'views_gen'. This I think makes the object remember the old data and is why it is shown twice for me. Is there some special reason for doing this?
Thanks!
Comments
Comment #1
Stalski commentedThx for the help. This is correct and i only wanted to separate the views activity streams from the one that come in default. This will be fixed in the next release (nightly already and planning to commit this week).
Giving a unique string from view name with it's current display will fix this problem.
Thx!
Stalski
Comment #2
Stalski commentedHey marcus,
I actually fixed it right away. See http://drupal.org/cvs?commit=263794
Greetz,
Stalski
Comment #3
marcus_johansson commentedThanks!