Having trouble writing data to certain fields

Christian Robottom Reis kiko at async.com.br
Thu Mar 4 17:41:30 UTC 2004

On Thu, Mar 04, 2004 at 01:28:07PM +0000, MKey at atmi.com wrote:
> So my question is, what is the process of transferring variable data
> between the enter_bug.cgi, post_bug.cgi and the associated Template files ?
> I have tried to simply copy and paste the existing product and component
> code renaming the fields to customer and contact.....but it doesnt seem to
> work

Data is only moved from template into CGI files through a form
submission. You can access the related CGI object in the CGI via
Bugzilla->cgi, though it normally is already set to a local $cgi
attribute. It's then a matter of grabbing $cgi->param("foo") to get the
related form fields ("foo" being whatever you set the form element's
name attribute to).

Data is moved from CGI files into the template via the $vars hash which
is provided to $template->process(). I guess you've managed to do that
given that you've been able to see customers listed in your generated

Take care,
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331

More information about the developers mailing list