Links from Article Text don't show if no related links
| Project: | Links Package |
| Version: | 6.x-1.2 |
| Component: | Code: links_related.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Actually I think there is a bug here.
Try this:
* enable related links module and configure it for a node type (also enable the links tab)
* put a real html link (a href) somewhere in the text
* save and view the node
* click on the Links tab -> it will be empty (should show the link you made)
Now do this:
* edit the node again
* put in a related link in the special fields in the fieldset 'related links' below the node body
* save and view the node
Now, it will show the "Links from Article Text" you made the first time, in addition to the link you specified in step 2.
I think the fault is in links_related.module:line 435
if (! count($links)) {
return '';
}The code after this doesn't get executed when there aren't any links.
Tested in 6.x-1.2 and 6.x-2.x-dev
