I just ran this search on drupal.org:
http://drupal.org/project/issues/drupal?page=1&projects=3060&text=forum&...

Roughly: searching for issues of any kind in forum.module with the word 'forum' in them, active->fixed.

The search results appeared as many times as there were comments on the node in question. This is odd.

Comments

chx’s picture

I suspect this has to do something with the fixed (aka. changed) node_get_module_name. As project is breaking the API with its node names (node names are prefixed with modulename and a dash per drupaldocs.org), said function returned the whole node type not just 'project'. Now it returns 'project' all the time -- the old function relied on the dash, my rewrite of said function does not rely on such a convention. Maybe this will help someone who will work on fixing this.

Tobias Maier’s picture

*bump*
please fix it!!
thanks

nedjo’s picture

StatusFileSize
new3.7 KB

Not sure why this is happening, I haven't looked closely enough at the code. Would simply adding some DISTINCTs to the queries at least provide a temporary fix, see attached (untested).

rgladwell’s picture

Status: Active » Needs review
nedjo’s picture

StatusFileSize
new3.46 KB

This patch is tested and eliminates duplicate search results (at least on my local project module install). It also includes needed updates to make issues revision-aware.

dries’s picture

Code looks good. Is that $sql safe for SQL injection attacks? If so, feel free to commit.

nedjo’s picture

Status: Needs review » Fixed

Is that $sql safe for SQL injection attacks?

It doesn't introduce any new input parameters, so yes.

Applied.

Anonymous’s picture

Status: Fixed » Closed (fixed)