If you go to a taxonomy feed, for instance taxonomy/term/1/feed it shows a broken page instead of a RSS feed.

Looking at taxonomy_term_feed() function, it seems that it's missing the "return" at the end of the function.

Comments

javi-er’s picture

StatusFileSize
new545 bytes

Attached it's a patch that adds the missing "return"

javi-er’s picture

Status: Active » Needs review
lucascaro’s picture

Great catch!

I've added a test-only patch to illustrate the issue.
Cheers.

Status: Needs review » Needs work

The last submitted patch, taxonomy-feed_page-1784226-2-test+fix.patch, failed testing.

javi-er’s picture

Status: Needs work » Needs review

Changing to "needs review".

lucascaro’s picture

Re-testing the patch worked. This is a one-line bug that got introducing when moved from print to return on node_feed and there were no tests for the taxonomy feed page.

I'd RTBC this patch If the tests are ok, but I'm interested on feedback about the test, and if it's the best way to test this bug.

5t4rdu5t’s picture

I've tested the patch again and it solves the issue.

5t4rdu5t’s picture

Status: Needs review » Reviewed & tested by the community
catch’s picture

Status: Reviewed & tested by the community » Fixed

Looks reasonable to me. Committed/pushed to 8.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

gramar