Closed (fixed)
Project:
Trouble ticketing system to support Computer Network Operations
Version:
6.x-3.0-rc2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
23 Mar 2009 at 12:28 UTC
Updated:
14 Jul 2009 at 11:27 UTC
Jump to comment: Most recent file
Comments
Comment #1
roczei commentedThere is no mail notification feature for the queue at the moment, maybe the next release will content this. If you have a patch file for this feature then you can sent to us and we will check it.
Comment #2
errno commentedHi, I have done reading Drupal module development documentation, it looks pretty clear. So I will write a queue notification feature, possibly it will be ready on next week.
Comment #3
errno commentedI've started development and having a progress :) But one thing gets me in doubt, I've decided to request a suggestion.
Strange (in my opinion) conditional structure presents in function _ticket_mail_header:
if ($message['id'] != 'ticket_new_assigned') {
...
} elseif ($message['id'] == 'ticket_new_assigned') {
...
}
E-mail calls generated by my code passed via first branch but gets an empty $message['to'], and as a result e-mail is not sent :(
Can I add specific branch for my case? Is it compliant with module design?
Comment #4
errno commentedI have done the patch for Queue notification, it requires two additional fields in ticket_template table (simple SQL script included). Please check it and possibly commit. I will hold deploying to my production server awaiting for your verdict :)
Comment #5
mr.york commentedWe are testing your patch. If it works correctly then it will be commited to the modul.
I am asking for other people to test it and give some feedback.
Comment #6
mr.york commentedI checked your patch and I made a little modification.
This SQL query was before:
and this is the new one:
Reason of my modification: only the default mail addresses and selected mail addresses will get reports.
Comment #7
errno commentedFine, thanks :) I missed this, because it was my first experience with ticketing internals, and Drupal modules development at all.
Comment #8
mr.york commented