Closed (fixed)
Project:
Support Ticketing System
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2009 at 20:12 UTC
Updated:
10 Dec 2009 at 04:00 UTC
We're using the support module and project module on the same site. I noticed that the support module was sending out emails when people posted comments to project nodes. It also emails when comments are posted to other types. The best solution appears to be to stop support_comment() from acting on nodes that are of type support_ticket.
Patch attached. It's from today's HEAD.
| Comment | File | Size | Author |
|---|---|---|---|
| support-hook_comment_only_for_tickets.patch | 832 bytes | slip |
Comments
Comment #1
jeremy commentedI'm surprised this hasn't been reported before! A rather obvious bug! My fix is a little different then yours in that I go ahead and load the node to determine the content type -- we reuse it later at times. If node_load is a performance hit for you, there are patches out there to cache them...
Fix committed:
http://drupal.org/cvs?commit=294210