$fetchtemplates = array(
'SHOWREPORT',
'showreport_attachment',
- 'showreport_comment'
+ 'showreport_comment',
+ 'quicksearch'
);
define('SVN', '$Id$');
$message->error_permission();
}
+$bugid = intval($bugsys->in['bugid']);
+
+// ###################################################################
+
+if (empty($bugid) OR $_REQUEST['do'] == 'quicksearch')
+{
+ if (!empty($bugid))
+ {
+ if ($db->query_first("SELECT bugid FROM " . TABLE_PREFIX . "bug WHERE bugid = $bugid"))
+ {
+ header("Location: showreport.php?bugid=$bugid");
+ exit;
+ }
+ else
+ {
+ $error = lang::p('error_invalid_id');
+ }
+ }
+
+ eval('$template->flush("' . $template->fetch('quicksearch') . '");');
+ exit;
+}
+
// ###################################################################
// -------------------------------------------------------------------
if (!is_array($bug))
{
- $message->error('alert: bad bug');
+ $message->error(lang::p('error_invalid_id'));
}
if ($bug['hidden'] AND !can_perform('canviewhidden'))
background-color: rgb(102, 102, 102);
}
+.error
+{
+ color: rgb(255, 0, 0);
+}
+
#header
{
background-color: rgb(51, 51, 51);
margin: 0px 20px 5px 20px;
}
+.smallcontent
+{
+ margin-top: 35px;
+
+}
+
.listinghead
{
background-color: rgb(51, 51, 51);