]> git.koha-community.org Git - koha.git/commit
Bug 37103: Link log viewer options to corresponding system preference
authorOwen Leonard <oleonard@myacpl.org>
Mon, 17 Jun 2024 15:41:53 +0000 (15:41 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 18 Oct 2024 15:44:20 +0000 (17:44 +0200)
commitcd0f8c914192265508f72cb5e9a045a1cee839d3
tree0768914fd39fb2ca0de4d8869b6a21cef71e40cd
parent056abc53217e081d36119b2efb2e1f96de4a69f5
Bug 37103: Link log viewer options to corresponding system preference

This patch updates the log viewer interface so that users with the
correct permissions can click a module's "Log not enabled" icon to go
directly to the corresponding system preference for enabling the log.

To test, apply the patch and go to Tools -> Log viewer (must have
"view_system_logs" permission).

- You should see an icon next to each module for which logging is
  disabled. Hovering over the icon should give a tooltip: "Log not
  enabled."
- If you are logged in as a user with "manage_sysprefs" permission,
  clicking the icon should take you directly to the system preference
  for enabling or disabling that module's logs.
- If your user does not have "manage_sysprefs" permission the icon
  should not be a link.

Sponsored-By: Athens County Public Libraries
Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt
koha-tmpl/intranet-tmpl/prog/js/viewlog.js