I set up a simple page with no fn or footnotes tags and added text to the body and saved it.
I set up a view
- show all nodes
- show fields: body footnotes, body content
When showing nodes that have footnotes, everything displays as expected
But when showing a node with no footnotes, the full body content appears in both the body content and the body footnote fields of the view for that node.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1296978.patch | 540 bytes | dpatte |
Comments
Comment #1
dpatte commentedI have a solution:
in footnotes_views_handler_field_body_footnotes.inc
in function render_name($data, $values)
after the if clause
add the following
before the return;
ie: it should look like this
Now I have to learn how to create a patch for the dev for 7.x and 6.x :)
Comment #2
dpatte commentedpatch file included
Comment #3
hingo commentedAh yes, I see the problem and the patch is correct.
I have given you commit rights to the git repository and edit rights to the project page. Go ahead and commit the patch as discussed.
Even if the views code doesn't work in the current D7 release, please commit this also to that branch so that once it is made to work the same bug is already fixed.
Comment #4
rooby commentedI will commit this shortly. I just want to get the drupal 6 version in line with the drupal 7 version first.
Comment #5
rooby commentedCommitted to drupal 6 & 7.
http://drupalcode.org/project/footnotes.git/commit/ca6f700
http://drupalcode.org/project/footnotes.git/commit/745eefc