To reproduce:

  1. Create a View with 2 displays, feed 1 and feed 2.
  2. Use views_embed_view() to output both displays.
  3. Rows from 2nd display will all be blank.

The problem is a static variable in the views_plugin_row_rss_fields::render() function. It assumes that Views will only render a single display before php exits.

Members fund testing for the Drupal project. Drupal Association Learn more

Comments

colemanw created an issue. See original summary.

colemanw’s picture

Here is a patch to fix the problem.

colemanw’s picture

Issue summary: View changes
JKingsnorth’s picture

Status: Active » Needs review
DamienMcKenna’s picture

Out of interest, wouldn't multiple RSS feeds in out output stream result in invalid RSS?

colemanw’s picture

In my use-case I needed to fetch several streams programmatically and hand them off to another service.

bgm’s picture

Status: Needs review » Reviewed & tested by the community

We have been using this patch for a while, without discovering any issues.