https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34689 Bug ID: 34689 Summary: Add and duplicate item - Error 500 Change sponsored?: --- Product: Koha Version: 22.11 Hardware: All OS: All Status: NEW Severity: normal Priority: P3 Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: christophe.torin@univ-rennes2.fr QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Test case : - Select any biblio - Add an item - fill the form, and submit with the "Add & duplicate" button - Item is added, and the form is duplicated - Fill the missing info (barcode), and save the new item - Error 500 In koha logs, I have the following error : DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Duplicate entry '1100882' for key 'PRIMARY' at /home/koha/src/Koha/Object.pm line 170 After investigations, the id 1100882 is the id of the item that was added before. It looks like the new itemnumber is still present after duplicate ! Thanks, Christophe -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.