diff --git a/Layout/default/Device/Detail.php b/Layout/default/Device/Detail.php index cc33a3dfe..6bf9ed054 100644 --- a/Layout/default/Device/Detail.php +++ b/Layout/default/Device/Detail.php @@ -335,8 +335,8 @@ if ($devices->power != "0.0") {
'createconfig', 'ip' => $devices->ip, 'id' => $devices->id]) ?>" - +
power != "0.0") { allonts++; if (typeof customers[ont['serial']] !== "undefined") { customerid = customers[ont['serial']]['customer_number']; - if (customers[ont['serial']]['lastname'] != "") { + if (customers[ont['serial']]['lastname'] != "" && customers[ont['serial']]['lastname'] != null) { customername = customers[ont['serial']]['lastname'] + " " + customers[ont['serial']]['firstname']; + } else if (customers[ont['serial']]['lastname'] == null) { + customername = customers[ont['serial']]['street'] + ", " + customers[ont['serial']]['zip'] + " " + customers[ont['serial']]['city'] } else { customername = "" + customers[ont['serial']]['company'] + " (C)"; } @@ -736,7 +738,6 @@ if ($devices->power != "0.0") {
` + ont['serial'] + `
`); - }); $('#olt-splitter').append('' + allonts + 'show' + online + '/' + offline + ''); } else { diff --git a/Layout/default/Pop/Detail.php b/Layout/default/Pop/Detail.php index 809544a5e..270410f99 100644 --- a/Layout/default/Pop/Detail.php +++ b/Layout/default/Pop/Detail.php @@ -498,6 +498,7 @@ if (!empty(trim($pops->vlan_ipv6))) $extTextspan = ""; foreach ($module['slots'] as $slots) { $extText = ""; + $title=$slots['modulname']; if ($slots['type'] == '0') { $color = '#9fff6e'; $colorclass = "rack-color-lwl"; @@ -506,6 +507,7 @@ if (!empty(trim($pops->vlan_ipv6))) $extTextspan = "" . $extText . ""; } } else if ($slots['type'] == '1') { + $slots['modulname']=' $slots['device_id']]).'">'.$slots['modulname'].''; ?>