You are not logged in.
Pages: 1
Hi all!
First of all a big thanks to the developers of GLPI! You did a very good job and this piece of software is extremly supporting in our daily work!
I'm interested in customizing the Mail that is sended out, everytime a ticket is opend.
At the moment, the subject looks like this "[GLPI #0000039], New Helpdesk-Ticket" but I want to expand it a little bit, so it shows the Name of the User who opened it.
i.e "[GLPI #0000039], new Helpdesk-Ticket from User XYZ".
I've found the coding in mailing.class.php but I have no guess how to change it.
********CODE to be changed****************
// Create the message subject
$subject=sprintf("%s%07d%s","[GLPI #",$this->job->fields["ID"],"] ");
switch ($this->type){
case "new":
$subject.=$lang["mailing"][9];
....
....
*****************************************
Maybe I've to insert something like $this->job->fields["user"] behind, but I can't get it to work.
Thanks a lot for your help and with kindly regards...WebmassA
Offline
add getUserName($this->job->fields["author"])
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Where exactly should the line be entered?
Offline
case "new":
$subject.=$lang["mailing"][9].getUserName($this->job->fields["author"]);
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Thank you!
The only problem is that this only works for case "new". In cases "attrib", "followup", "update" and "finish", it still brings up the name of the original author of the job. We would like it to bring up the name of the individual making the followup or update or closing the job. is this possible? Thank you again
PS. GLPI 0.68.2 is an excellant application. You should be commended for the work you have done!
Offline
you need to do the same for the others cases.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Thank you for your response.
Adding it to the other cases just adds the name of the person who originally made the job. We would like it to add the name of the person making the followup or the update or closing the ticket.
Offline
it ismore difficult.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Pages: 1