You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2006-09-27 17:15:41

webmassa
Member
Registered: 2006-09-27
Posts: 1

Expand Mail-Subject

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

#2 2006-09-28 00:41:39

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Expand Mail-Subject

add getUserName($this->job->fields["author"])


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2006-10-04 23:37:18

Technologue
Member
Registered: 2006-09-15
Posts: 6

Re: Expand Mail-Subject

Where exactly should the line be entered?

Offline

#4 2006-10-05 00:19:53

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Expand Mail-Subject

case "new":
                $subject.=$lang["mailing"][9].getUserName($this->job->fields["author"]);


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#5 2006-10-06 15:31:56

Technologue
Member
Registered: 2006-09-15
Posts: 6

Re: Expand Mail-Subject

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

#6 2006-10-06 19:04:51

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Expand Mail-Subject

you need to do the same for the others cases.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#7 2006-10-06 21:35:40

Technologue
Member
Registered: 2006-09-15
Posts: 6

Re: Expand Mail-Subject

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

#8 2006-10-07 01:58:21

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Expand Mail-Subject

it ismore difficult.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

Board footer

Powered by FluxBB