When a node has no attachments, the attachment module generates this unnecessary HTML code at the end of the body:

<br /><a name="attachments"></a><div class="attachments"></div>

This causes the excerpt module to generate a "read more" link in the teasers for nodes that should not have that link, and it could cause other similar problems.

The patch fixes this by making sure there is at least one non-hidden attachment before generating any code for the attachment list.

CommentFileSizeAuthor
geary-2005-09-15.attachment.module.patch1.37 KBGeary

Comments

ccourtne’s picture

Status: Needs review » Closed (fixed)

Patch applied thanks!

zach harkey’s picture

+1 even if it is cleaning up another module's crap.