query(" SELECT bug.*, user1.displayname AS firstreport, user2.displayname AS lastpost FROM " . TABLE_PREFIX . "bug AS bug LEFT JOIN user AS user1 ON (bug.userid = user1.userid) LEFT JOIN user AS user2 ON (bug.lastpostby = user2.userid) ORDER BY bug.lastposttime DESC" ); while ($bug = $db->fetch_array($bugs_fetch)) { $bug['product'] = $bugsys->datastore['product']["$bug[productid]"]['title']; $bug['version'] = $bugsys->datastore['version']["$bug[versionid]"]['version']; $bug['status'] = $bugsys->datastore['status']["$bug[status]"]['status']; $bug['resolution'] = $bugsys->datastore['resolution']["$bug[resolution]"]['resolution']; $bug['lastpostinfo'] = datelike('standard', $bug['lastposttime']) . ' by ' . $bug['lastpost']; eval('$bugs .= "' . $tpl->fetch('trackerhome_bits') . '";'); } $db->free_result($bugs_fetch); $show['newreport'] = iff(can_perform('cansubmitbugs'), true, false); eval('$tpl->flush("' . $tpl->fetch('TRACKERHOME') . '");'); /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>