diff --git a/Netdisco/Changes b/Netdisco/Changes index 7e8211fb..c1f71100 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -4,6 +4,7 @@ * DNS Mismatch report incorrectly trimmed domain_suffix * Fake one device aliases entry for devices not providing ip_index + * DataTables render function should check for type 2.028006 - 2014-07-21 diff --git a/Netdisco/share/views/ajax/report/ipinventory.tt b/Netdisco/share/views/ajax/report/ipinventory.tt index 12e011a0..5eeadd61 100644 --- a/Netdisco/share/views/ajax/report/ipinventory.tt +++ b/Netdisco/share/views/ajax/report/ipinventory.tt @@ -25,11 +25,15 @@ $(document).ready(function() { "data": 'ip', "render": function(data, type, row, meta) { var cell_str = he.encode(data); - if (row.time_last && row.node) { - cell_str = '' + he.encode(data) + (row.active ? '' : '  ') + ''; - } - else if (row.time_last) { - cell_str = '' + he.encode(data) + ''; + if (type == 'display') { + if (row.time_last && row.node) { + cell_str = '' + he.encode(data) + + (row.active ? '' : '  ') + ''; + } + else if (row.time_last) { + cell_str = '' + he.encode(data) + ''; + } } return cell_str; }