Greetings people,
I have a problem:
I have followed all the steps http://osticket.com/forums/showthread.php?t=873(http://osticket.com/forums/showthread.php?t=873), I add variables, I put everything as is. But to open a new ticket is not in the new fields in the database.
Can you help me with this?
On class.ticket.php
var $persona;
var $cirif;
if(($res=db_query($sql)) && db_num_rows($res)):
$row=db_fetch_array($res);
$this->persona =$row;
$this->cirif =$row;
//GET
function getCirif() {
return $this->cirif;
}
function getPersona() {
return $this->persona;
}
$fields = array('type'=>'string', 'required'=>1, 'error'=>'Persona de contacto requerida');
$fields = array('type'=>'phone', 'required'=>1, 'error'=>'CI o RIF invalido');
',persona='.db_input(Format:($var)).
',cirif='.db_input(Format:($var).
On newticket.inc.php
<tr>
<td align="left" ><b>RIF o C.I.:</b></td>
<td><input type="text" id="name3" name="name3" size="25" value="<?=$info?>" />
<font class="error"><b>*</b>
<?=$errors?>
</font></td>
</tr>
<tr>
<td align="left">Persona de Contacto:</td>
<td><input type="text" id="name2" name="name2" size="25" value="<?=$info?>" />
<font class="error"><b>*</b> </font><font class="error"><?=$errors?>
</font></td>
</tr>