Bug 34066: Datatable options don't fully translate on list of saved reports

This patch corrects the DataTable option for defining an alternate
language string when no records are returned by a table filter. An
obsolete version of the option name was breaking the existing custom
option supplied by our datatables.js

To test, apply the patch and go to Reports -> Use saved..

 - In the DataTable of existing reports, all the DataTable controls
   should look correct.
 - In the filter field at the top of the table, enter a string which
   will not be found. You should see a message, "No matching reports
   found."
 - Install another language if necessary, and switch to that language.
 - The labels on all the DataTable controls should show the terms which
   have been translated for that language.

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e26d7c783e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 12969850e8)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2023-06-21 13:30:57 +00:00 committed by Matt Blenkinsop
parent adcd629169
commit af392e36d6
1 changed files with 4 additions and 3 deletions

View File

@ -1853,9 +1853,10 @@
'bAutoWidth': false,
'sPaginationType': 'full',
'aaSorting': [[ 1, "asc" ]],
'oLanguage': {
'sZeroRecords': _("No matching reports found")
}
"language": {
"zeroRecords": _("No matching reports found")
},
}, table_settings);
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) {