SiT! Bugs - SiT!
View Issue Details
0001303SiT!portalpublic2010-04-27 12:462012-07-07 18:10
vitorcosta 
Tomse 
normalfeaturealways
closedfixed 
LinuxLinux2.6+later
3.60 LTS 
3.66 LTS3.66 LTS 
0001303: When user/contact update the incident no trigger occurs
When user reply the incident no notification occurs to tecnical people.

I add in my sit instalation a call to trygger TRIGGER_INCIDENT_UPDATE_INTERNAL in

portal/update.php line 181
No tags attached.
Issue History
2010-04-27 12:46vitorcostaNew Issue
2010-04-29 20:02paulhNote Added: 0003119
2010-04-29 20:02paulhStatusnew => confirmed
2012-06-28 17:59itpp2012Note Added: 0004490
2012-06-28 20:59itpp2012Note Added: 0004491
2012-06-30 13:01TomseAssigned To => Tomse
2012-06-30 13:01TomseStatusconfirmed => assigned
2012-06-30 13:01TomseTarget Version => 3.66 LTS
2012-07-06 12:19TomseNote Added: 0004493
2012-07-06 12:19TomseStatusassigned => resolved
2012-07-06 12:19TomseFixed in Version => Current SVN
2012-07-06 12:19TomseResolutionopen => fixed
2012-07-06 14:13TomseFixed in VersionCurrent SVN => 3.66 LTS
2012-07-07 18:10ivanStatusresolved => closed

Notes
(0003119)
paulh   
2010-04-29 20:02   
Yeap confirm this is an issue though the trigger should be TRIGGER_INCIDENT_UPDATED_EXTERNAL as its being updated by the 'customer'
(0004490)
itpp2012   
2012-06-28 17:59   
In the database I've changed entry TRIGGER_INCIDENT_UPDATED_EXTERNAL template value to EMAIL_INCIDENT_UPDATED_BY_CUSTOMER and added a template with this name.

I've tried adding:
trigger('TRIGGER_INCIDENT_UPDATED_EXTERNAL', array('incidentid' => $id, 'userid' => $sit[2]));
In /portal/update.php around line 109 but get a "Call to undefined function trigger()" error.

Any idea how to fix this as it would solve the issue in 3.65 lts.
(0004491)
itpp2012   
2012-06-28 20:59   
Solved, add at the top:
"require (APPLICATION_LIBPATH . 'triggers.inc.php');"

Working as its suppose to, when a customer updates a incident you can use a template to send an email to the support team(s).

Got it from add.php where it uses triggers in the portal.
(0004493)
Tomse   
2012-07-06 12:19   
fixed in svn 7517