[Koha-bugs] [Bug 21465] New: Overlaying with Patron Imports cannot be done if user id and cardnumber are the same.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 1 20:59:10 CEST 2018


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

            Bug ID: 21465
           Summary: Overlaying with Patron Imports cannot be done if user
                    id and cardnumber are the same.
 Change sponsored?: ---
           Product: Koha
           Version: 18.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Tools
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: kelly at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

In the Koha version of 18.05 using the patron import tool, if a patron has the
same userid and cardnumber, and a library attempts of overlaying an updated
file on patron information into Koha, an error will occur.   

Test Plan
1. Create patron csv according to the download starter CSV in Koha.
2. Patrons were assigned a card number by the library and this card number was
also used for their User ID. 
3. Import the Patron CSV into Koha.
4. Adjust this same Patron CSV file adding/updating an address, adding/updating
a field of data.
5. Use this new file to import into Koha
6 Choose to match on the cardnumber
7. Choose to overwrite the existing one with this file. 
8. Koha will produce an error saying that the userid already in use by another
patron. 

Different Scenario
Do Steps 1-5 the same
6. Choose to match on the User Id
7. Choose to overwrite the existing one with this file.
8.  Koha will do the overwrite correctly.

Libraries do tend to give patrons a cardnumber and also use that as the
patron's userid. It would appear that matching on the userid works, however,
this should not work this way, it should be able to match on either and produce
same results- a successful overlay.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list