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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | taxonomy-feed_page-1784226-2-test-only.patch | 678 bytes | lucascaro |
| #3 | taxonomy-feed_page-1784226-2-test+fix.patch | 1.19 KB | lucascaro |
| #1 | taxonomy-feed_page-1784226-1.patch | 545 bytes | javi-er |
Comments
Comment #1
javi-er commentedAttached it's a patch that adds the missing "return"
Comment #2
javi-er commentedComment #3
lucascaro commentedGreat catch!
I've added a test-only patch to illustrate the issue.
Cheers.
Comment #5
javi-er commentedChanging to "needs review".
Comment #6
lucascaro commentedRe-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.
Comment #7
5t4rdu5t commentedI've tested the patch again and it solves the issue.
Comment #8
5t4rdu5t commentedComment #9
catchLooks reasonable to me. Committed/pushed to 8.x.
Comment #10.0
(not verified) commentedgramar