Hello,I just did the udpate to v1.7.7 and I had custom fields in my previous version that broke in this version. The old way defined var = and the new way uses getters and setters. I fgured out how to call the getter, but I cant figure out how to add the input to the DB. I show the fields on my new ticket form using:</div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><div><span style="font-family: 'lucida grande', 'Lucida Sans Unicode', tahoma, sans-serif; line-height: 1.7em;"> <input type="text" name="bizaddress" size="35" value="<?=$info?>"></span><br></div><div><span style="font-family: 'lucida grande', 'Lucida Sans Unicode', tahoma, sans-serif; line-height: 1.7em;"> <input type="text" name="bizhours" size="35" value="<?=$info?>"></span><br></div><div>
and I tried editing class.ticket.php with:</div><div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"> $fields=array();</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"> $fields = array('type'=>'string', 'required'=>1, 'error'=>'Name required');</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"> $fields = array('type'=>'email', 'required'=>1, 'error'=>'Valid email required');</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"> $fields = array('type'=>'string', 'required'=>1, 'error'=>'Subject required');</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"> $fields = array('type'=>'int', 'required'=>1, 'error'=>'Help topic required');</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"> $fields = array('type'=>'int', 'required'=>1, 'error'=>'Priority required');</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"> $fields = array('type'=>'int', 'required'=>0, 'error'=>'Select SLA');</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"> $fields = array('type'=>'phone', 'required'=>0, 'error'=>'Valid phone # required');</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"> $fields = array('type'=>'date', 'required'=>0, 'error'=>'Invalid date - must be MM/DD/YY');</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"><br></span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"><span class="Apple-tab-span" style="white-space"> </span>/* custom field */</span></font></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$fields = array('type'=>'string', 'required'=>0, 'error'=>'Address required');</span></font></div></div><div><font face="Arial, Verdana" size="2"><span style="line-height: normal;">
and </span></font></div><div><font face="Arial, Verdana" size="2"><div style="line-height: normal;">$sql='UPDATE '.TICKET_TABLE.' SET updated=NOW() '</div><div style="line-height: normal;"> .' ,email='.db_input($vars)</div><div style="line-height: normal;"> .' ,name='.db_input(Format:($vars))</div><div style="line-height: normal;"> .' ,subject='.db_input(Format:($vars))</div><div style="line-height: normal;"><span class="Apple-tab-span" style="white-space"> </span>.' ,bizaddress='.db_input(Format:($vars))</div><div style="line-height: normal;"> .' ,phone="'.db_input($vars,false).'"'</div><div style="line-height: normal;"> .' ,phone_ext='.db_input($vars?$vars)</div><div style="line-height: normal;">
above in the getters I have </div><div style="line-height: normal;"><br></div><div><div><span style="line-height: normal;">/* added custom fields */</span></div><div><span class="Apple-tab-span" style="white-space: pre; line-height: normal;"> </span></div><div><span style="line-height: normal;"><span class="Apple-tab-span" style="white-space"> </span>function getBizaddress() {</span></div><div><span style="line-height: normal;"> return $this->ht;</span></div><div><span style="line-height: normal;"> }</span></div><div><span style="line-height: normal;"><br></span></div><div><span style="line-height: normal;"><span class="Apple-tab-span" style="white-space"> </span>function getBizhours() {</span></div><div><span style="line-height: normal;"> return $this->ht;</span></div><div><span style="line-height: normal;"> }</span></div><div><span style="line-height: normal;"><br></span></div><div><span style="line-height: normal;"><span class="Apple-tab-span" style="white-space"> </span>function getBizname() {</span></div><div><span style="line-height: normal;"> return $this->ht;</span></div><div><span style="line-height: normal;"> }</span></div></div><div style="line-height: normal;">
I dont get any errors, butthe custom fields dont get added to the db. Can anyone advise what I need to change?Thanks!