# Determine whether to use the action specified by the user or the default.
my $action = $cgi->param('action') || 'view';
+# Determine if PatchReader is installed
+eval {
+ require PatchReader;
+ $vars->{'patchviewerinstalled'} = 1;
+};
+
if ($action eq "view")
{
view();
$vars->{'mailrecipients'} = { 'changer' => $user->login,
'owner' => $owner };
$vars->{'attachment'} = $attachment;
+ # We cannot reuse the $bug object as delta_ts has eventually been updated
+ # since the object was created.
+ $vars->{'bugs'} = [new Bugzilla::Bug($bugid)];
+ $vars->{'header_done'} = 1;
$vars->{'contenttypemethod'} = $cgi->param('contenttypemethod');
print $cgi->header();
$vars->{'bugsummary'} = $bugsummary;
$vars->{'attachments'} = $bugattachments;
- # Determine if PatchReader is installed
- eval {
- require PatchReader;
- $vars->{'patchviewerinstalled'} = 1;
- };
print $cgi->header();
# Generate and return the UI (HTML page) from the appropriate template.
# Define the variables and functions that will be passed to the UI template.
$vars->{'mailrecipients'} = { 'changer' => Bugzilla->user->login };
$vars->{'attachment'} = $attachment;
+ # We cannot reuse the $bug object as delta_ts has eventually been updated
+ # since the object was created.
+ $vars->{'bugs'} = [new Bugzilla::Bug($bug->id)];
+ $vars->{'header_done'} = 1;
print $cgi->header();
[% PROCESS global/variables.none.tmpl %]
[% PROCESS global/header.html.tmpl
- title = "Changes Submitted"
+ title = "Attachment $attachment.id added to $terms.Bug $attachment.bug_id"
%]
<dl>
<p>
<a href="attachment.cgi?bugid=[% attachment.bug_id %]&action=enter">Create
- Another Attachment to [% terms.Bug %] #[% attachment.bug_id %]</a>
+ Another Attachment to [% terms.Bug %] [%+ attachment.bug_id %]</a>
</p>
-[% PROCESS global/footer.html.tmpl %]
+[% PROCESS bug/show.html.tmpl %]
[% PROCESS global/variables.none.tmpl %]
[% PROCESS global/header.html.tmpl
- title = "Changes Submitted"
+ title = "Changes Submitted to Attachment $attachment.id of $terms.Bug $attachment.bug_id"
%]
<dl>
</dd>
</dl>
-[% PROCESS global/footer.html.tmpl %]
+[% PROCESS bug/show.html.tmpl %]