#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1026177479', 'name' => 'bug/edit.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n"; $output .= "\n"; # CAPTURE $stash->set('filtered_desc', do { my $output = ''; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'short_desc', 0]); &$filter($output); }; $output; }); if (!($stash->get('header_done'))) { $output .= $context->process('global/header.html.tmpl', { 'title' => ("Bug " . $stash->get(['bug', 0, 'bug_id', 0]) . " - " . $stash->get(['bug', 0, 'short_desc', 0])), 'h1' => ("Bugzilla Bug " . $stash->get(['bug', 0, 'bug_id', 0])), 'h2' => $stash->get('filtered_desc'), 'header_html' => $stash->get('navigation_links') }); } $output .= "\n"; $output .= $context->process('bug/navigate.html.tmpl'); $output .= "\n\n
\n\n
\n\n get(['bug', 0, 'delta_ts', 0]); $output .= "\">\n get(['bug', 0, 'longdesclength', 0]); $output .= "\">\n get(['bug', 0, 'bug_id', 0]); $output .= "\">\n\n"; $output .= "\n\n \n \n \n \n \n \n\n "; $output .= $context->process('select', { 'selname' => 'rep_platform' }); $output .= "\n \n \n \n \n \n \n "; $output .= $context->process('select', { 'selname' => 'product' }); $output .= "\n \n "; $output .= $context->process('select', { 'selname' => 'op_sys' }); $output .= "\n\n \n \n \n\n"; $output .= " \n\n \n \n \n\n \n \n "; $output .= $context->process('select', { 'selname' => 'version' }); $output .= "\n \n \n \n \n \n \n \n \n \n \n "; $output .= $context->process('select', { 'selname' => 'priority' }); $output .= "\n \n \n \n \n \n \n \n "; $output .= $context->process('select', { 'selname' => 'bug_severity' }); $output .= "\n \n \n \n \n \n \n \n "; if ($stash->get(['Param', [ 'usetargetmilestone' ]]) && $stash->get(['bug', 0, 'target_milestone', 0])) { $output .= "\n "; $output .= $context->process('select', { 'selname' => 'target_milestone' }); } else { $output .= "\n "; } $output .= "\n \n\n"; $output .= "\n"; if ($stash->get(['Param', [ 'useqacontact' ]])) { $output .= "\n \n \n \n "; } $output .= "\n\n \n \n \n \n \n \n \n \n \n"; if ($stash->get(['Param', [ 'usestatuswhiteboard' ]])) { $output .= " \n \n \n \n "; } $output .= "\n"; if ($stash->get('use_keywords')) { $output .= "\n \n \n "; } $output .= "\n
\n Bug#:\n \n get(['Param', [ 'urlbase' ]]); $output .= "show_bug.cgi?id="; $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\">"; $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= "\n  \n Platform:\n \n Reporter:\n "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'reporter', 0]); &$filter($output); }; $output .= "\n
\n Product:\n \n OS:\n \n Add CC:\n \n \n
\n \n filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'product', 0]); &$filter($output); }; $output .= "\">\n Component:\n \n \n \n  \n Version:\n \n CC:\n "; if ($stash->get(['bug', 0, 'cc', 0])) { $output .= "\n \n
\n Remove selected CCs\n
"; } else { $output .= "\n "; } $output .= "\n
\n \n Status:\n \n "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_status', 0]); &$filter($output); }; $output .= " \n Priority:\n
\n \n Resolution:\n \n "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'resolution', 0]); &$filter($output); }; $output .= " \n Severity:\n
\n \n Assigned To:\n \n "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'assigned_to', 0]); &$filter($output); }; $output .= " \n \n filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'milestoneurl', 0]); &$filter($output); }; $output .= "\">Target Milestone:\n \n  
\n QA Contact:\n \n filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'qa_contact', 0]); &$filter($output); }; $output .= "\" size=\"60\">\n
\n "; if ($stash->get(['bug', 0, 'bug_file_loc', 0])) { $output .= "\n filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_file_loc', 0]); &$filter($output); }; $output .= "\">URL:"; } else { $output .= "\n URL:"; } $output .= "\n \n \n filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_file_loc', 0]); &$filter($output); }; $output .= "\" size=\"60\">\n
\n Summary:\n \n filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'short_desc', 0]); &$filter($output); }; $output .= "\" size=\"60\">\n
\n Status Whiteboard:\n \n filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'status_whiteboard', 0]); &$filter($output); }; $output .= "\" size=\"60\">\n
\n \n Keywords:\n \n \n filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'keywords', 0, 'join', [ ', ' ]]); &$filter($output); }; $output .= "\" size=\"60\">\n
\n \n"; $output .= "\n"; $output .= $context->process('attachment/list.html.tmpl', { 'attachments' => $stash->get(['bug', 0, 'attachments', 0]), 'bugid' => $stash->get(['bug', 0, 'bug_id', 0]) }); $output .= "\n\n"; $output .= "\n"; if ($stash->get(['Param', [ 'usedependencies' ]])) { $output .= "\n \n "; $output .= $context->process('dependencies', { 'dep' => { 'title' => 'depends on', 'fieldname' => 'dependson' } }); $output .= "\n \n \n\n "; $output .= $context->process('dependencies', { 'dep' => { 'title' => 'blocks', 'fieldname' => 'blocked' } }); $output .= "\n \n
\n get(['bug', 0, 'bug_id', 0]); $output .= "\">Show \n dependency tree \n"; if ($stash->get(['Param', [ 'webdotbase' ]])) { $output .= " \n
\n get(['bug', 0, 'bug_id', 0]); $output .= "\">Show \n dependency graph"; } $output .= "\n
"; } $output .= "\n"; if ($stash->get('use_votes')) { $output .= "\n \n \n \n \n \n
\n Votes:\n "; $output .= $stash->get(['bug', 0, 'votes', 0]); $output .= "   \n get(['bug', 0, 'bug_id', 0]); $output .= "\">Show \n votes for this bug   \n get(['bug', 0, 'bug_id', 0]); $output .= "\">Vote \n for this bug\n
"; } $output .= "\n\n"; $output .= "\n\n
\n Additional Comments:\n
\n \n
\n"; if ($stash->get(['groups', 0, 'size', 0]) > 0) { $output .= "\n
\n Only users in all of the selected groups can view this bug:\n
\n (Unchecking all boxes makes this a public bug.)\n
\n
\n"; # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('groups'); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'group'} = $value; $output .= "\n     \n get(['group', 0, 'bit', 0]); $output .= "\" value=\"1\" "; if ($stash->get(['group', 0, 'ison', 0])) { $output .= ('' . " checked=\"checked\""); } if (! $stash->get(['group', 0, 'ingroup', 0])) { $output .= ('' . " disabled=\"disabled\""); } $output .= ">"; $output .= $stash->get(['group', 0, 'description', 0]); $output .= "\n
";; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n"; if (! $stash->get(['user', 0, 'inallgroups', 0])) { $output .= "\n \n Only members of a group can change the visibility of a bug for \n that group\n \n
"; } $output .= "\n"; if ($stash->get(['bug', 0, 'inagroup', 0])) { $output .= "\n

\n But users in the roles selected below can always view this bug:\n
\n \n (The assignee "; if (($stash->get(['Param', [ 'useqacontact' ]]))) { $output .= "\n and QA contact"; } $output .= "\n can always see a bug, and this section does not take effect unless \n the bug is restricted to at least one group.)\n \n

\n\n

\n get(['bug', 0, 'reporter_accessible', 0])) { $output .= ' checked'; } $output .= ">Reporter\n get(['bug', 0, 'cclist_accessible', 0])) { $output .= ' checked'; } $output .= ">CC List\n

"; } } $output .= "\n\n"; $output .= "\n\n
\n \n Leave as "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'bug_status', 0]); &$filter($output); }; $output .= " "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'resolution', 0]); &$filter($output); }; $output .= "\n
\n"; $stash->set('knum', 1); $output .= "\n"; if ($stash->get(['bug', 0, 'bug_status', 0]) eq 'UNCONFIRMED' && $stash->get(['user', 0, 'canconfirm', 0])) { $output .= "\n \n Confirm bug (change status to NEW)\n
"; $stash->set('knum', $stash->get('knum') + 1); } $output .= "\n"; if ($stash->get(['user', 0, 'canedit', 0])) { if ($stash->get(['bug', 0, 'isopened', 0])) { if ($stash->get(['bug', 0, 'bug_status', 0]) ne 'ASSIGNED' && $stash->get(['user', 0, 'canconfirm', 0])) { $output .= "\n \n Accept bug ("; if ($stash->get(['bug', 0, 'isunconfirmed', 0])) { $output .= 'confirm bug, '; } $output .= "change\n status to ASSIGNED)\n
"; $stash->set('knum', $stash->get('knum') + 1); } $output .= "\n"; if ($stash->get(['bug', 0, 'resolution', 0])) { $output .= "\n \n Clear the resolution (remove the current resolution of\n "; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'resolution', 0]); &$filter($output); }; $output .= ")
"; $stash->set('knum', $stash->get('knum') + 1); } $output .= "\n\n \n Resolve bug, changing resolution to\n \n
"; $stash->set('knum', $stash->get('knum') + 1); $output .= "\n\n \n Resolve bug, mark it as duplicate of bug # \n get('knum'); $output .= "].checked=true}\">\n
"; $stash->set('knum', $stash->get('knum') + 1); $output .= "\n\n \n Reassign bug to\n filter('js') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'assigned_to_email', 0]); &$filter($output); }; $output .= "') && \n (this.value != '')) {\n document.changeform.knob["; $output .= $stash->get('knum'); $output .= "].checked=true; \n }\" \n value=\""; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['bug', 0, 'assigned_to_email', 0]); &$filter($output); }; $output .= "\">\n
"; if ($stash->get(['bug', 0, 'isunconfirmed', 0]) && $stash->get(['user', 0, 'canconfirm', 0])) { $output .= "\n     \n and confirm bug (change status to NEW)\n
"; } $stash->set('knum', $stash->get('knum') + 1); $output .= "\n\n \n Reassign bug to owner"; if ($stash->get('useqacontact')) { $output .= 'and QA contact'; } $output .= "\n of selected component\n
"; if ($stash->get(['bug', 0, 'isunconfirmed', 0]) && $stash->get(['user', 0, 'canconfirm', 0])) { $output .= "\n     \n and confirm bug (change status to NEW)\n
"; } $stash->set('knum', $stash->get('knum') + 1); } else { if ($stash->get(['bug', 0, 'resolution', 0]) ne 'MOVED' || ($stash->get(['bug', 0, 'resolution', 0]) eq 'MOVED' && $stash->get(['user', 0, 'canmove', 0]))) { $output .= " \n Reopen bug\n
"; $stash->set('knum', $stash->get('knum') + 1); } if ($stash->get(['bug', 0, 'bug_status', 0]) eq 'RESOLVED') { $output .= "\n \n Mark bug as VERIFIED
"; $stash->set('knum', $stash->get('knum') + 1); } if ($stash->get(['bug', 0, 'bug_status', 0]) ne 'CLOSED') { $output .= "\n \n Mark bug as CLOSED
"; $stash->set('knum', $stash->get('knum') + 1); } } } $output .= " \n \n \n \n

\n \n \n get(['bug', 0, 'bug_id', 0]); $output .= "\">View Bug Activity\n   |  \n get(['bug', 0, 'bug_id', 0]); $output .= "\">Format For Printing\n \n \n"; if ($stash->get(['user', 0, 'canmove', 0])) { $output .= "\n   |  \n get(['Param', [ 'move-button-text' ]]); $output .= "\">"; } $output .= "\n

\n
\n\n"; $output .= "\n\n\n \n \n \n \n
\n \n Description:\n \n \n Opened: "; $output .= $stash->get(['bug', 0, 'creation_ts', 0]); $output .= "\n
\n
\n"; $output .= $context->process('bug/comments.html.tmpl', { 'comments' => $stash->get(['bug', 0, 'comments', 0]) }); $output .= "\n \n
\n"; $output .= $context->process('bug/navigate.html.tmpl'); $output .= "\n\n
\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'select' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= " \n \n \n \n  "; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, 'dependencies' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n Bug "; $output .= $stash->get(['bug', 0, 'bug_id', 0]); $output .= " "; $output .= $stash->get(['dep', 0, 'title', 0]); $output .= ":\n "; # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['bug', 0, $stash->get(['dep', 0, 'fieldname', 0]), 0]); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'depbug'} = $value; $output .= $stash->get(['GetBugLink', [ $stash->get('depbug'), $stash->get('depbug') ]]); $output .= ' ';; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n \n \n get(['dep', 0, 'fieldname', 0]); $output .= "\" \n value=\""; $output .= $stash->get(['bug', 0, $stash->get(['dep', 0, 'fieldname', 0]), 0, 'join', [ ', ' ]]); $output .= "\">\n "; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, }, });