]> git.koha-community.org Git - koha.git/commit
Bug 26236: Fix translating interface from DB term to readable term
authorNick Clemens <nick@bywatersolutions.com>
Tue, 18 Aug 2020 13:33:33 +0000 (13:33 +0000)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 15 Sep 2020 11:46:16 +0000 (23:46 +1200)
commit8c20104bf3d8fb9df2dc03f140ec74a407149dc9
treed39b5f6571da2598795049e4f81ca59971705ba8
parent8df5f362acef1d04f8ecf03db1ef38fbb770b9aa
Bug 26236: Fix translating interface from DB term to readable term

When viewing the logs we try to swith the db values like 'cron' to friendly terms like
'Cron job'

The values we use for building the selectors on the page ar eupper case, but DB values are lower case

If we simply force upper case in the comparison we can ensure we always match correctly

To test:
1 - Enable some 'Logs' setting in System preferences
2 - Perform some action in koha that will log
    Run a cronjob
    Change a syspref
    etc.
3 - Browse to Tools-> Log viewer
4 - Click 'Submit' to see all logs
5 - Note the 'Interface' column contains lower case DB values
6 - Apply patch
7 - Reload the page
8 - Values in interface are now Camel cased and more friendly

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 1733944b34499c145c2ae4c68c70efc87a5bec27)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c08642687d35305cda2948272335530c8fc76b3c)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt