Bug 26205: Add logging of news items
authorLucas Gass <lucas@bywatersolutions.com>
Wed, 12 May 2021 18:20:16 +0000 (18:20 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 23 Jun 2021 12:56:55 +0000 (14:56 +0200)
commit52fcc6b904c260a4e4e00b063aa2deaf55ab9a71
treeadc0d63a611b51efc0a204cc77d68a4f93aa4a6f
parentfbecb78ca9a9ae19b465b36d1398dd3ca09b840b
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