New Client CC Box
Mark Ingram
mark.ingram at nexsan.com
Wed Jul 23 11:43:29 UTC 2003
Hi,
im trying to edit the following files:
enter_bug.cgi
post_bug.cgi
create.html.tmpl
so that i can have a new textbox underneath the existing CC box when
creating a new bug. This box is called client_cc and will contain addresses
of clients that need to be informed about the progress of the bug.
In enter_bug.cgi around line 265 i added:
$vars->{'client_cc'} = formvalue{'client_cc'};
In post_bug.cgi around line 222 i added:
my @client_cc;
# Create an array of client email addresses to send
# bug fix confirmations onto
print "About to enter the check for client_cc";
if (defined $::FORM{'client_cc'}) {
print "client_cc was defined! woop woop!";
foreach my $person (split(/[ ,]/, $::FORM{'client_cc'})) {
if ($person ne "") {
print $person;
push(@client_cc, $person);
}
}
}
else {
print "No client_cc defined!";
}
And in create.html.tmpl around line 154 i added:
<tr>
<td align="right"><strong>Client Cc:</strong></td>
<td colspan="3">
<input name="client_cc" size="45" value="[% client_cc FILTER html %]">
</td>
</tr>
Obviously the textboxes get displayed but im not picking up anyvalues from
them, in fact, i dont get any print out from the check that client_cc is
defined in the FORM.
Am i missing some fundamentals here? For instance, do i need to edit the
vars object manually to add in client_cc, or do i need to edit the $::FORM
to add client_cc ??
As you know this is my first attempt at modifying the bugzilla code so be
gentle :)
Best Regards,
Mark Ingram
Software Engineer
Nexsan Technologies
33 - 35 Parker Centre
Mansfield Road
Derby
DE21 4SZ
More information about the developers
mailing list