Show the translated enterprise string by default on the SNMP console.

(cherry picked from commit b3f5e76009)
This commit is contained in:
Ramon Novoa 2015-03-24 12:59:23 +01:00
parent 77354a886e
commit 0846236dd2
1 changed files with 9 additions and 8 deletions

View File

@ -477,7 +477,15 @@ if ($traps !== false) {
//OID
$table->cellclass[$idx][2] = get_priority_class ($severity);
$data[2] = '<a href="javascript: toggleVisibleExtendedInfo(' . $trap["id_trap"] . ');">' . (empty($trap["oid"]) ? __('N/A') : $trap["oid"]) .'</a>';
if (! empty($trap["text"])) {
$enterprise_string = $trap["text"];
} else if (! empty($trap["oid"])) {
$enterprise_string = $trap["oid"];
} else {
$enterprise_string = __('N/A');
}
$data[2] = '<a href="javascript: toggleVisibleExtendedInfo(' . $trap["id_trap"] . ');">' . $enterprise_string .'</a>';
//Count
if ($group_by) {
@ -591,13 +599,6 @@ if ($traps !== false) {
</tr>';
}
if ($trap["text"] != "") {
$string .= '<tr>
<td align="left" valign="top">' . '<b>' . __('Text:') . '</td>
<td align="left">' . $trap['text'] . '</td>
</tr>';
}
if ($trap["type"] != "") {
$trap_types = array(-1 => __('None'), 0 => __('Cold start (0)'), 1 => __('Warm start (1)'), 2 => __('Link down (2)'), 3 => __('Link up (3)'), 4 => __('Authentication failure (4)'), 5 => __('Other'));