Bugzilla – Attachment 176955 Details for
Bug 36163
Can't select a country for usage statistics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36163: Usage statistics - Not possible to select a country
Bug-36163-Usage-statistics---Not-possible-to-selec.patch (text/plain), 2.44 KB, created by
Roman Dolny
on 2025-01-23 12:18:15 UTC
(
hide
)
Description:
Bug 36163: Usage statistics - Not possible to select a country
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2025-01-23 12:18:15 UTC
Size:
2.44 KB
patch
obsolete
>From a91b54a5f79022d129791aaadd7f65e5edef3062 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Mon, 20 Jan 2025 14:35:56 +0000 >Subject: [PATCH] Bug 36163: Usage statistics - Not possible to select a > country > >Site: .../cgi-bin/koha/admin/usage_statistics.pl > >If you try to select a country, you get an error: >== >The value of your system preference 'UsageStatsCountry' is not valid (Germany). Please select a valid one. >== > >It doesn't matter which country you chose, no country is valid. > >Test plan: >========== >1. Select a country for UsageStatsCountry system preference. >2. Go to http://<your addr>:8081/cgi-bin/koha/admin/usage_statistics.pl >3. Confirm the issue. >4. Apply the patch ; restart_all. >5. Repeat p. 2. >6. Confirm that the issue has been solved. > >Sponsored-by: Ignatianum University in Cracow >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > .../intranet-tmpl/prog/en/modules/admin/usage_statistics.tt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt >index 48494d573c..a6a0a8578f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt >@@ -100,11 +100,12 @@ > <select name="UsageStatsCountry" id="UsageStatsCountry"> > <option value=""> </option> > [% FOREACH country IN country_strings.split(',') %] >+ [% country = country.trim %] > [% IF country == UsageStatsCountry %] >- <option value="[% country.trim | html %]" selected="selected">[% country.trim | html %]</option> >+ <option value="[% country | html %]" selected="selected">[% country | html %]</option> > [% SET IsUsageStatsCountryValid = 1 %] > [% ELSE %] >- <option value="[% country.trim | html %]">[% country.trim | html %]</option> >+ <option value="[% country | html %]">[% country | html %]</option> > [% END %] > [% END %] > </select> >-- >2.39.5
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 36163
:
176822
|
176831
|
176954
| 176955 |
176956