[Koha-bugs] [Bug 26236] log viewer does not translate the interface properly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 3 11:08:17 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26236

--- Comment #5 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 109596
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109596&action=edit
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 at biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list