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

--- Comment #20 from Olivia Reynolds <[email protected]> ---
Created attachment 209157
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209157&action=edit
Bug 42826: Allow changing report authors

This patch adds an "Author" field to the edit form for reports, only
usable by users with the edit_all_reports.

Test plan:
1.  Apply patches.
2.  Log in as a user with edit_all_reports permission (such as koha on
    KTD).
3.  Create a report under Tools > Reports.
    The quickest way to do this is to create a new SQL report with any
    title and "SELECT 1" as the SQL query.
4.  Verify editing the new report shows an "Author" field with the
    borrowernumber of your user.
5.  Verify typing a patron name in this field autocompletes correctly.
6.  Verify changing this author field, saving, and reloading the edit
    page displays the change correctly.
7.  Verify that changing the author to an invalid borrowernumber or to
    an empty string produces an error on save.
8.  Log in as a librarian without edit_all_reports but with
    create_reports permission.
9.  Create a new report.
10. Verify this librarian does not see the "Author" field.
11. Prove t/db_dependent/Reports/Guided.t and verify all the tests pass.

Sponsored-by: Open Fifth

-- 
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