diff options
author | gerv%gerv.net <> | 2002-04-04 04:54:12 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-04-04 04:54:12 +0200 |
commit | 03ad2ba8d181eeb39ce224005e348ff6f9d3b119 (patch) | |
tree | 06f6b52bc15704a67b7decc3a65a9d89cf4599fc /process_bug.cgi | |
parent | 8218d4fede3ee86113841137fbe186fc587c5153 (diff) | |
download | bugzilla-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.tar.gz bugzilla-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.tar.xz |
Bug 124937 - templatise show_activity.cgi. Patch by me, r=myk, bbaetz.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 945f02c60..561db45e7 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -961,14 +961,21 @@ Someone else has made changes to this bug at the same time you were trying to. The changes made were: <p> "; - DumpBugActivity($id, $::FORM{'delta_ts'}); + use vars qw($template $vars); + + ($vars->{'operations'}, $vars->{'incomplete_data'}) = + GetBugActivity($::FORM{'id'}, $::FORM{'delta_ts'}); + + $template->process("show/activity.html.tmpl", $vars) + || DisplayError("Template process failed: " . $template->error()) + && exit; + my $comments = GetComments($id); my $longchanged = 0; if (scalar(@$comments) > $::FORM{'longdesclength'}) { $longchanged = 1; - print "<P>Added text to the long description:<blockquote>"; - use vars qw($template $vars); + print "<P>Added comments:<blockquote>"; $vars->{'start_at'} = $::FORM{'longdesclength'}; $vars->{'comments'} = $comments; $vars->{'quoteUrls'} = \"eUrls; @@ -995,7 +1002,7 @@ The changes made were: print qq{<input type=submit value="Submit my changes anyway">\n}; print " This will cause all of the above changes to be overwritten"; if ($longchanged) { - print ", except for the changes to the description"; + print ", except for the added comments"; } print qq{.</form>\n<li><a href="show_bug.cgi?id=$id">Throw away my changes, and go revisit bug $id</a></ul>\n}; PutFooter(); |