Bug 18626

Summary: Add ability to track cardnumber changes for patrons
Product: Koha Reporter: Kyle M Hall (khall) <kyle>
Component: PatronsAssignee: Kyle M Hall (khall) <kyle>
Status: CLOSED FIXED QA Contact: Josef Moravec <josef.moravec>
Severity: enhancement    
Priority: P5 - low CC: cbrannon, gmcharlt, jdemuth, jonathan.druart, josef.moravec, kyle.m.hall, lisettepalouse+koha, nick, sally.healey, veron
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 18626 - Add ability to track cardnumber changes for patrons
Bug 18626 - Add ability to track cardnumber changes for patrons
Bug 18626 - Add ability to track cardnumber changes for patrons
Bug 18626 - Add ability to track cardnumber changes for patrons
Bug 18626: Add unit tests
Bug 18626: Add unit tests

Description Kyle M Hall (khall) 2017-05-18 14:35:34 UTC
Some libraries want to keep a history of cardnumber changes for a patron. This is a feature that another ILS has.
Comment 1 Kyle M Hall (khall) 2017-05-18 14:38:51 UTC
Created attachment 63532 [details] [review]
Bug 18626 - Add ability to track cardnumber changes for patrons

Some libraries want to keep a history of cardnumber changes for a
patron. This is a feature that another ILS has.

Test Plan:
1) Apply this patch
2) Enable the BorrowersLog
3) Modify a patron, update his or her cardnumber
4) Notice the entry in the action log containing the old and new cardnumbers
5) Edit a patron, leave the cardnumber the same
6) Note there is no cardnumber change entry in the action logs
7) Disable BorrowersLog, modify a patron cardnumber
8) Note there is no cardnumber change entry in teh action logs
Comment 2 Marc Véron 2017-05-19 05:49:09 UTC
Created attachment 63560 [details] [review]
Bug 18626 - Add ability to track cardnumber changes for patrons

Some libraries want to keep a history of cardnumber changes for a
patron. This is a feature that another ILS has.

Test Plan:
1) Apply this patch
2) Enable the BorrowersLog
3) Modify a patron, update his or her cardnumber
4) Notice the entry in the action log containing the old and new cardnumbers
5) Edit a patron, leave the cardnumber the same
6) Note there is no cardnumber change entry in the action logs
7) Disable BorrowersLog, modify a patron cardnumber
8) Note there is no cardnumber change entry in teh action logs

Followed test plan, works as expected
Signed-off-by: Marc Véron <veron@veron.ch>
Comment 3 Christopher Brannon 2017-08-31 15:08:49 UTC
*** Bug 19226 has been marked as a duplicate of this bug. ***
Comment 4 Christopher Brannon 2017-08-31 15:09:33 UTC
(In reply to Christopher Brannon from comment #3)
> *** Bug 19226 has been marked as a duplicate of this bug. ***

Thanks for catching this.
Comment 5 Josef Moravec 2017-12-03 09:26:14 UTC
Created attachment 69467 [details] [review]
Bug 18626 - Add ability to track cardnumber changes for patrons

Some libraries want to keep a history of cardnumber changes for a
patron. This is a feature that another ILS has.

Test Plan:
1) Apply this patch
2) Enable the BorrowersLog
3) Modify a patron, update his or her cardnumber
4) Notice the entry in the action log containing the old and new cardnumbers
5) Edit a patron, leave the cardnumber the same
6) Note there is no cardnumber change entry in the action logs
7) Disable BorrowersLog, modify a patron cardnumber
8) Note there is no cardnumber change entry in teh action logs

Followed test plan, works as expected
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 6 Jonathan Druart 2017-12-11 17:23:32 UTC
Please add tests to cover this change.
Comment 7 Kyle M Hall (khall) 2018-03-09 14:52:11 UTC
Created attachment 72607 [details] [review]
Bug 18626 - Add ability to track cardnumber changes for patrons

Some libraries want to keep a history of cardnumber changes for a
patron. This is a feature that another ILS has.

Test Plan:
1) Apply this patch
2) Enable the BorrowersLog
3) Modify a patron, update his or her cardnumber
4) Notice the entry in the action log containing the old and new cardnumbers
5) Edit a patron, leave the cardnumber the same
6) Note there is no cardnumber change entry in the action logs
7) Disable BorrowersLog, modify a patron cardnumber
8) Note there is no cardnumber change entry in teh action logs

Followed test plan, works as expected
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 8 Kyle M Hall (khall) 2018-03-09 14:52:22 UTC
Created attachment 72608 [details] [review]
Bug 18626: Add unit tests
Comment 9 Kyle M Hall (khall) 2018-03-09 15:02:41 UTC
Created attachment 72609 [details] [review]
Bug 18626: Add unit tests
Comment 10 Jonathan Druart 2018-03-23 15:35:47 UTC
Pushed to master for 18.05, thanks to everybody involved!
Comment 11 Nick Clemens (kidclamp) 2018-03-26 12:02:32 UTC
Enhancement, not backported for 17.11