Im working on customizing the inforamation that is required from osTicket. Right now all that I need the site to ask for is the Store Number (retail chain), the issue, subject, and message. What I need the code to do is take the Store number and convert that over to an email address, then send that information to the database so that they can check the ticket status.
I have edited class.ticket.php and open.inc.php to allow for this. So far the site is taking the information from the Store Number field and converting it over to the email address that it needs to be, then it sends out the emails. I have confirmed that it does work. What isnt working is the email address isnt going into the database. That is keeping the users from going in and checking the status of the tickets.
What would I need to do to pipe the information into the database? I know that the text box for email in open.inc.php is sending the information through to the database without a problem. Id like to bypass that text box. I changed the getEmail() to work for what I need
Original:
function getEmail(){
return $this->email;
Mine:
function getEmail(){
if($this->fullname <= 9){
return $this->email = $this->franOO.$this->fullname.$this->domain;
}elseif(($this->fullname <=100) && ($this->fullname >= 10)){
return $this->email = $this->franO.$this->fullname.$this->domain;
}elseif($this->fullname >= 100){
return $this->email = $this->fran.$this->fullname.$this->domain;
}
}
The code is working to change what ever number they enter in into the correct email address, and the site is sending out the emails. Im just not sure what/where I need to make the next change to input into the database.
Thanks for the help.