Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82618

Datatables 2.1 - Issue with Boolean value in table.draw()

$
0
0

Unfourtunaly I can't provide a test case, as it is a closed system.

We are returning a http Webrequest as Object.

'HasAPI': data[index].HasAPI,
'IsGlobal': data[index].IsGlobal,
'IsMaster': data[index].IsMaster,
'IsSSO': data[index].IsSSO,

All are boolean values (true, false) in the object.

Comment: ""
CountryGUID: "d242ab9e-1f8d-4da5-b363-702843f7b259"
GUID: "78ad6004-269b-4c4f-9cf4-c3d1db552b51"
HasAPI: false <--- Boolean
IsSSO: true <--- Boolean
IsMaster: true <--- Boolean
IsGlobal: true <--- Boolean

Error:
TypeError: t.replace is not a function
at L (dataTables.min.js:4:9187)
at c (dataTables.min.js:4:776)
at oneOf (dataTables.min.js:4:83993)
at st (dataTables.min.js:4:17847)
at d (dataTables.min.js:4:26228)
at X.<anonymous> (dataTables.min.js:4:52094)
at X.iterator (dataTables.min.js:4:47201)
at X.<anonymous> (dataTables.min.js:4:52049)
at X.draw (dataTables.min.js:4:48481)

When converting the data into a string, the table.draw() is working:

table.rows.add(
[
{
'HasAPI': data[index].HasAPI
}
]

Workaround -> 'HasAPI': String(data[index].HasAPI) it is working for all Boolean values.

Forgot: In Version 2.0.8 it is working, the issue appeared after update to 2.1


Viewing all articles
Browse latest Browse all 82618

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>