getData method invocation with the formatted
detail parameter set to true returns formatted data for only the first column of every row
#7500
Labels
Bug
Issues which are marked as Bug
Bootstraptable version(s) affected
1.23.0+
Description
When getData is called with the formatted parameter set to true, not only does it return the formatted data for only the first column of every row, but the
{"column1key":"column1data","column2key":"column2data"}
structure of each row item in the array was lost.Example(s)
Before Bug v1.22.6
https://live.bootstrap-table.com/code/Darc-Charlie/18173
With Bug v1.23.0
https://live.bootstrap-table.com/code/Darc-Charlie/18172
Possible Solutions
The issue seems to stem from this commit:
5c1da3b under this PR #7365.
My suggestion for a fix: accumulate the key and formatted values for each found column into an object. Then return that object as the mapped value of the current row.
Additional Context
No response
The text was updated successfully, but these errors were encountered: