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

--- Comment #4 from Roman Dolny <[email protected]> ---
Created attachment 202976
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202976&action=edit
Bug 42036: Support diffs for report logs

This patch makes use of the `original` parameter to `logaction` to log a
diff of the entire Report object on create/modify/delete.

Test plan:
1.  Apply patch.
2.  Enable the system preference ReportsLog.
3.  Navigate to Reports, and create a new report.
    The quickest way to do this is to create a report from SQL with any
    name and "SELECT 1" as the SQL query.
4.  Once the report has been created, edit its title and save the
    changes.
5.  Delete the report.
6.  Navigate to Tools > Log Viewer.
7.  Ensure "Reports" is enabled under "Modules", and click "Submit".
8.  Verify there are three Reports log entries corresponding to the
    create/modify/delete of the report earlier.
9.  Enable the "Diff" column in the log viewer.
10. Verify each of the three log entries has an appropriate diff
    displayed.

Sponsored-by: Open Fifth
Signed-off-by: Roman Dolny <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to