It has problems since vb3.6 with those lines in vbugs.php
PHP Code:
foreach ($bugcache['severity'] as $key => $entry) {
$selected = iif($vbulletin->GPC['vbug_severityid'] == $key, 'selected="selected"');
$val = $entry['title'];
eval('$severitybits .= "' . fetch_template('userfield_select_option') . '";');
}
foreach ($bugcache['type'] as $key => $entry) {
$selected = iif($vbulletin->GPC['vbug_typeid'] == $key, 'selected="selected"');
$val = $entry['title'];
eval('$typebits .= "' . fetch_template('userfield_select_option') . '";');
}
foreach ($bugcache['version'] as $key => $entry) {
$selected = iif($vbulletin->GPC['vbug_versionid'] == $key, 'selected="selected"');
$val = $entry['title'];
eval('$versionbits .= "' . fetch_template('userfield_select_option') . '";');
}
foreach ($bugcache['status'] as $key => $entry)
{
$statuscount = $db->query_first("
SELECT count(*) AS status
FROM " . TABLE_PREFIX . "vbug
WHERE vbug_statusid = $key
");
$numstatuses = $statuscount['status'];
$selected = iif($vbulletin->GPC['vbug_statusid'] == $key, 'selected="selected"');
$val = $entry['title']. " (" .$numstatuses. ")";
eval('$statusbits .= "' . fetch_template('userfield_select_option') . '";');
}
The foreeach statement is wrong but I am not a programer to say what has changes with 3.6 and how those lines need to look now.