https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38353
Bug ID: 38353
Summary: DT - Possible hidden bugs caused by $.extend
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Possible bugs could be hidden behind the use of $.extend when we merge DT's
options.
We are using (almost everywhere):
$(selector).dataTable($.extend(true, {}, dataTablesDefaults, {
But:
var dataTablesDefaults = { "lengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50,
100, __('All')]] };
var mine = {lengthMenu: [[1, 2, 5, 10], [1, 2, 5, 10]]};
$.extend(true, {}, dataTablesDefaults, mine);
[
1,
2,
5,
10,
-1
]
See also bug 30397.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/