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

furrymitn - June 19, 2009 - 15:00
Status:active» needs review

Here's a patch that does exactly the above...

AttachmentSize
textlinkads_preview_fix1.diff.patch 607 bytes

#2

scottrigby - August 16, 2009 - 23:12
AttachmentSize
textlinkads_447880_2.patch 587 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.