From bugzilla-daemon@bugs.koha-community.org Sat Mar 31 09:19:42 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] New: Language attribute in html tag is empty
in system preference editor
Date: Sat, 31 Mar 2018 07:19:39 +0000
Message-ID:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4134729409552609720=="
--===============4134729409552609720==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Bug ID: 20504
Summary: Language attribute in html tag is empty in system
preference editor
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Staff Client
Assignee: koha-bugs@lists.koha-community.org
Reporter: katrin.fischer@bsz-bw.de
QA Contact: testopia@bugs.koha-community.org
CC: gmcharlt@gmail.com
Koha populates the lanugage attribute of the html tag on all pages with the
language code of the currently selected language. Apart from other things this
allows customizations using the language code to control visibility of
translated text.
This works well, but for the system preference editor, where the language
attribute is empty:
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
--===============4134729409552609720==--
From bugzilla-daemon@bugs.koha-community.org Sat Mar 31 09:20:17 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Sat, 31 Mar 2018 07:20:13 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0889426399190799844=="
--===============0889426399190799844==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Katrin Fischer changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |christian.stelzenmueller@bs
| |z-bw.de
--- Comment #1 from Katrin Fischer ---
*** Bug 19591 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
--===============0889426399190799844==--
From bugzilla-daemon@bugs.koha-community.org Thu Aug 9 01:57:17 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Wed, 08 Aug 2018 23:56:47 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8740500883908009211=="
--===============8740500883908009211==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
--- Comment #2 from Katrin Fischer ---
The problem is that $lang is send to the template from preferences.pl and
overwrites the normal $lang variable.
I *think* the variable is not used/never properly set.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
--===============8740500883908009211==--
From bugzilla-daemon@bugs.koha-community.org Thu Aug 9 19:49:56 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Thu, 09 Aug 2018 17:49:53 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8215110763663220172=="
--===============8215110763663220172==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Katrin Fischer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |Needs Signoff
Patch complexity|--- |Small patch
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
--===============8215110763663220172==--
From bugzilla-daemon@bugs.koha-community.org Thu Aug 9 19:50:02 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Thu, 09 Aug 2018 17:49:57 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============7634804795757582948=="
--===============7634804795757582948==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
--- Comment #3 from Katrin Fischer ---
Created attachment 77634
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=77634&action=edit
Bug 20504: Fix lang attribute in html tag on systempreferences page
On the system preferences page the lang attribute of the
html tag is always empty.
To test:
- Go to systempreferences
- Check the html source and look at the html tag,
it should read:
- Apply patch
- Check the html source again:
Verify the language code shown matches the currently
selected language in the staff interface
- Verify the language system preferences work correctly
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
--===============7634804795757582948==--
From bugzilla-daemon@bugs.koha-community.org Thu Aug 9 19:52:37 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Thu, 09 Aug 2018 17:52:34 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============7719540615778601237=="
--===============7719540615778601237==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D20504
--- Comment #4 from Katrin Fischer ---
I am not totally sure about this one - it seems that the $lang variable in the
preferences code was never set and not used in the template. But by overwriti=
ng
the existing lang template variable, it broke the lang attribute in the html
tag.
--=20
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
--===============7719540615778601237==--
From bugzilla-daemon@bugs.koha-community.org Thu Aug 9 20:16:33 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Thu, 09 Aug 2018 18:16:03 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2839986175134351642=="
--===============2839986175134351642==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Katrin Fischer changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart@bugs.koha-c
| |ommunity.org
--
You are receiving this mail because:
You are watching all bug changes.
--===============2839986175134351642==--
From bugzilla-daemon@bugs.koha-community.org Thu Aug 9 23:57:13 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Thu, 09 Aug 2018 21:57:10 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1884449270131418740=="
--===============1884449270131418740==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Jonathan Druart changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Signoff |Signed Off
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
--===============1884449270131418740==--
From bugzilla-daemon@bugs.koha-community.org Thu Aug 9 23:57:19 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Thu, 09 Aug 2018 21:57:14 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============5139251143327651214=="
--===============5139251143327651214==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D20504
Jonathan Druart changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #77634|0 |1
is obsolete| |
--- Comment #5 from Jonathan Druart =
---
Created attachment 77636
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=3D77636&action=3D=
edit
Bug 20504: Fix lang attribute in html tag on systempreferences page
On the system preferences page the lang attribute of the
html tag is always empty.
To test:
- Go to systempreferences
- Check the html source and look at the html tag,
it should read:
- Apply patch
- Check the html source again:
Verify the language code shown matches the currently
selected language in the staff interface
- Verify the language system preferences work correctly
Signed-off-by: Jonathan Druart
The problem was actually that
$lang =3D $template->param( 'lang' );
should certainly be $lang =3D $input->param( 'lang' );
and, as it, it overrides the value of 'lang' passed from C4::Auth
--=20
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
--===============5139251143327651214==--
From bugzilla-daemon@bugs.koha-community.org Thu Aug 9 23:58:12 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Thu, 09 Aug 2018 21:58:09 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4356888182203663414=="
--===============4356888182203663414==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Jonathan Druart changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|koha-bugs@lists.koha-commun |katrin.fischer@bsz-bw.de
|ity.org |
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
--===============4356888182203663414==--
From bugzilla-daemon@bugs.koha-community.org Tue Aug 21 18:16:21 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Tue, 21 Aug 2018 16:16:19 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============5164996609011568331=="
--===============5164996609011568331==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Josef Moravec changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Signed Off |Passed QA
--
You are receiving this mail because:
You are watching all bug changes.
--===============5164996609011568331==--
From bugzilla-daemon@bugs.koha-community.org Tue Aug 21 18:16:27 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Tue, 21 Aug 2018 16:16:23 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============7580676924774073896=="
--===============7580676924774073896==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Josef Moravec changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #77636|0 |1
is obsolete| |
--- Comment #6 from Josef Moravec ---
Created attachment 78049
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78049&action=edit
Bug 20504: Fix lang attribute in html tag on systempreferences page
On the system preferences page the lang attribute of the
html tag is always empty.
To test:
- Go to systempreferences
- Check the html source and look at the html tag,
it should read:
- Apply patch
- Check the html source again:
Verify the language code shown matches the currently
selected language in the staff interface
- Verify the language system preferences work correctly
Signed-off-by: Jonathan Druart
The problem was actually that
$lang = $template->param( 'lang' );
should certainly be $lang = $input->param( 'lang' );
and, as it, it overrides the value of 'lang' passed from C4::Auth
Signed-off-by: Josef Moravec
--
You are receiving this mail because:
You are watching all bug changes.
--===============7580676924774073896==--
From bugzilla-daemon@bugs.koha-community.org Tue Aug 21 18:16:36 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Tue, 21 Aug 2018 16:16:33 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2774458388730065185=="
--===============2774458388730065185==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Josef Moravec changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |josef.moravec@gmail.com
QA Contact|testopia@bugs.koha-communit |josef.moravec@gmail.com
|y.org |
--
You are receiving this mail because:
You are watching all bug changes.
--===============2774458388730065185==--
From bugzilla-daemon@bugs.koha-community.org Wed Aug 22 17:01:03 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Wed, 22 Aug 2018 15:00:59 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6962345207295754817=="
--===============6962345207295754817==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Nick Clemens changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick@bywatersolutions.com
Status|Passed QA |Pushed to Master
--- Comment #7 from Nick Clemens ---
Awesome work all!
Pushed to master for 18.11
--
You are receiving this mail because:
You are watching all bug changes.
--===============6962345207295754817==--
From bugzilla-daemon@bugs.koha-community.org Fri Aug 24 12:44:55 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Fri, 24 Aug 2018 10:44:52 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4967789485168418678=="
--===============4967789485168418678==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Martin Renvoize changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Pushed to Master |Pushed to Stable
CC| |martin.renvoize@ptfs-europe
| |.com
--- Comment #8 from Martin Renvoize ---
Pushed to 18.05.x for 18.05.03
--
You are receiving this mail because:
You are watching all bug changes.
--===============4967789485168418678==--
From bugzilla-daemon@bugs.koha-community.org Fri Sep 21 15:37:25 2018
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 20504] Language attribute in html tag is empty in
system preference editor
Date: Fri, 21 Sep 2018 13:37:21 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4024552293586435459=="
--===============4024552293586435459==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20504
Fridolin SOMERS changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|Pushed to Stable |RESOLVED
CC| |fridolin.somers@biblibre.co
| |m
--- Comment #9 from Fridolin SOMERS ---
Pushed to 17.11.x for 17.11.10
--
You are receiving this mail because:
You are watching all bug changes.
--===============4024552293586435459==--