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.
Not sure if it's a bug, but it certainly is curious.
I have three displays:
- Block
- Attachment
- Feed
If I attach the Feed to the Block, all is well-- the Feed icon displays in the Block. But if I also attach the Attachment to the Block, the Feed displays twice. It is as if, by attaching the Attachment to the Block, it inherits the Feed.
Is there some logic, here, that I'm just not getting? If not, is there a fix?
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#3 | views-640862.patch | 1022 bytes | dawehner |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedHm. I think the rendered feed_icon isn't getting cleared when the view is cloned. In view.inc in the function clone_view() try adding 'feed_icon' to the $keys array and see if that fixes the problem?
Comment #2
Ellen Dee CreditAttribution: Ellen Dee commentedThat did it. Thanks!
Comment #3
dawehnerPerhaps there should be a way for plugins to extend this array.
This patch just fixes this problem.
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedWell, the root problem is that there is too much runtime data on the view object. Something I would like to do someday is add a view_instance object that stores runtime data, so the $view itself could be clean. Then cloning a view gets a lot simpler. Plus, you could have several instance objects on a view, if done right.
This fix is committed to all branches.