Bugzilla – Attachment 152519 Details for
Bug 34066
Datatable options don't fully translate on list of saved reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34066: Datatable options don't fully translate on list of saved reports
Bug-34066-Datatable-options-dont-fully-translate-o.patch (text/plain), 1.96 KB, created by
Owen Leonard
on 2023-06-21 14:04:15 UTC
(
hide
)
Description:
Bug 34066: Datatable options don't fully translate on list of saved reports
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-06-21 14:04:15 UTC
Size:
1.96 KB
patch
obsolete
>From 3daad4cc7a1f5ec702ee4f243ee43ede72bff7c8 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 21 Jun 2023 13:30:57 +0000 >Subject: [PATCH] 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. >--- > .../prog/en/modules/reports/guided_reports_start.tt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index ecb9480af4..9cba1f300c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -1906,9 +1906,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) { >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34066
:
152484
|
152519
|
154322
|
154588