Empty preview
SMerriman - April 28, 2009 - 23:11
| Project: | Text Link Ads Integration |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Took me a long time to track down this bug to this module, but eventually I have.
When inlinks are turned on for a node, previewing the node shows absolutely no content at all.
This is due to the function textlinkads_inlinks_add_links not returning anything when the node id is not set, which is the case in preview.
Adding return $data; at the end of this function should fix the problem (I'm not sure how to write patches so I'll let someone else do that).

#1
Here's a patch that does exactly the above...
#2