Bug 37701 - Log viewer doesn't show everything when Module 'All' is checked
Summary: Log viewer doesn't show everything when Module 'All' is checked
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Transaction logs (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Lucas Gass
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-21 16:47 UTC by Lucas Gass
Modified: 2024-08-21 18:23 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 37701: Remove object_type from viewlog (2.83 KB, patch)
2024-08-21 17:38 UTC, Lucas Gass
Details | Diff | Splinter Review
Bug 37701: Remove object_type from viewlog (2.88 KB, patch)
2024-08-21 18:23 UTC, Brendan Lawlor
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass 2024-08-21 16:47:01 UTC
To recreate:
1. Find a record and do 1 edit to the record.
2. Also do 1 edit to an item on that record.
3. From the navbar on the left click 'Modification log'
4. You should see both the item and record modifications in log.
5. Notice also that the 'Catalog' module checkbox is checked by default
6. Now check 'All' instead and click 'Submit'
7. Now the item modification is gone, you only see the record modification.
Comment 1 Lucas Gass 2024-08-21 17:33:14 UTC
In viewlog.pl there is 'object_type'. It is only passed when you come to the log viewer from the record link. I think it may be unnessesary? Without it you are not able to get item level info. related to the bib when you come to the log viewer in any other way than directly for the 'Modification log' link on the record detail page.
Comment 2 Lucas Gass 2024-08-21 17:38:13 UTC
Created attachment 170573 [details] [review]
Bug 37701: Remove object_type from viewlog

To test:
1. Find a record and do 1 edit to the record.
2. Also do 1 edit to an item on that record.
3. From the navbar on the left click 'Modification log'
4. You should see both the item and record modifications in log.
5. Notice also that the 'Catalog' module checkbox is checked by default
6. Now check 'All' instead and click 'Submit'
7. Now the item modification is gone, you only see the record modification.
8. APPLY PATCH and restart_all
9. Try again, you should now always see item information when viewing the log.
10. Test the log viewer from the link in on the record detail page.
11. Also test by going directly to the Log viewer tool. ( Tools > Log viewer)
Comment 3 Brendan Lawlor 2024-08-21 18:23:32 UTC
Created attachment 170574 [details] [review]
Bug 37701: Remove object_type from viewlog

To test:
1. Find a record and do 1 edit to the record.
2. Also do 1 edit to an item on that record.
3. From the navbar on the left click 'Modification log'
4. You should see both the item and record modifications in log.
5. Notice also that the 'Catalog' module checkbox is checked by default
6. Now check 'All' instead and click 'Submit'
7. Now the item modification is gone, you only see the record modification.
8. APPLY PATCH and restart_all
9. Try again, you should now always see item information when viewing the log.
10. Test the log viewer from the link in on the record detail page.
11. Also test by going directly to the Log viewer tool. ( Tools > Log viewer)

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>