Bug 26205: Add logging of news items
authorLucas Gass <lucas@bywatersolutions.com>
Wed, 12 May 2021 18:20:16 +0000 (18:20 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Jul 2021 12:35:42 +0000 (08:35 -0400)
commit305df49ecf494ac7dcbfcb927b5283440d0de5d9
tree4c81101435d78834b70f29eaee36eb58bb238bf5
parent7fef05b641520c08dbc14361fc813b62e220bbdc
Bug 26205: Add logging of news items

To test:

1. Apply patch, updatedatabase, restart_all
2. Make sure the system pref 'NewsLog' is turned on.
3. Go to the Koha News tool and create a new news item.
4. View the logs and display only the OPAC News module
5. You should see your new news, it will include the lang (
   OPACheader_en ) and the content of the news item.
6. Filter the logs so the only action is 'Add', your new news item
   should appear
7. Modify some news items
8. They should appear in the logs now as modification.
9. Make sure you can filter the action to 'Modify' and can confirm it
   works
10. Delete some news items
11. They should appear in the logs now as deletinon
12. Make sure you can filter the action to 'Delete' and can confirm it
    works

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/NewsChannels.pm
installer/data/mysql/atomicupdate/bug_26205_add_newslog_system_pref.perl [new file with mode: 0644]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref
koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt