Menu

#261 Problem with some reports in ND2 2.033004

fixed
web (4)
2016-02-02
2016-01-29
Max Kosmach
No

Current Netdisco2 version (2.033004) dows not show some reports:
Device->Port utilization
(error in browser log "TypeError: data.replace is not a function" at string return data.replace... in {
"data": 'port_count',
"searchable": false,
"render": function(data, type, row, meta) {
return data.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
})

Device -> Module Inventory
Uncaught TypeError: data.replace is not a function at return data.replace...
{
"data": 'count',
"render": function(data, type, row, meta) {
return data.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

Port -> Ports with multiple nodes attached
"Uncaught TypeError: data.replace is not a function" at return data.replace...
{
"data": 'mac_count',
"searchable": false,
"render": function(data, type, row, meta) {
return data.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

Node -> Netbios inventory
"Uncaught TypeError: data.replace is not a function" at return data.replace...
{
"data": 'count',
"render": function(data, type, row, meta) {
return data.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

Same problem with
/report/nodemultiips
/report/nodevendor
/report/vlaninventory

CSV export working for this reports/

All other reports are working.

Discussion

  • Oliver Gorwits

    Oliver Gorwits - 2016-02-02
    • status: new --> fixed
    • assigned_to: Oliver Gorwits
     
  • Oliver Gorwits

    Oliver Gorwits - 2016-02-02

    Hi, this is fixed in the next release. Many thanks for the clear bug report!

     
  • Max Kosmach

    Max Kosmach - 2016-02-02

    Hi Oliver
    Thank You very much.
    PS. fix not in sf.net git?

     
  • Max Kosmach

    Max Kosmach - 2016-02-02

    Sorry, found new package at metacpan.
    Thank You